Question: PLEASE USE CODE WARRIOR TO RUN AND COMPLETE THE TABLE ; export symbols XDEF Entry, Startup ABSENTRY Entry ; export 'Entry' symbol ; Include derivative-specific

PLEASE USE CODE WARRIOR TO RUN AND COMPLETE THE TABLE

PLEASE USE CODE WARRIOR TO RUN AND COMPLETE THE TABLE ; export

symbols XDEF Entry, Startup ABSENTRY Entry ; export 'Entry' symbol ; Includederivative-specific definitions Replace derivative.inc with mc9s12dg256.inc INCLUDE 'derivative.inc' ROMStart EQU $4000 ;absolute address to place my code/constant data ; variable/data section ORG RAMStart

; export symbols XDEF Entry, Startup ABSENTRY Entry ; export 'Entry' symbol ; Include derivative-specific definitions Replace derivative.inc with mc9s12dg256.inc INCLUDE 'derivative.inc' ROMStart EQU $4000 ; absolute address to place my code/constant data ; variable/data section ORG RAMStart ; Insert here your data definition. Counter DSWT FiboRes DS. W 1 Delete these lines and if your program has data, put it here In data section, write sum dc.bo ;Sum byte stored here In Code section ldaa #$25 ; Load $25 to register A adda #$34 ;Add $34 to A adda #$11 ;Add $11 to A adda #18 ;Add $12 to A adda #%00011100 ;Add $10 to A staa sum ;Store total in 'sum' M[$1000] here: jmp here ; Stay here forever to end program Do not forget to include the mc9s12dg256.inc file that defines some constants, registers, and some memory locations. Table 1 PC A B [$1000] N Z V Page 14 of 15 Lab 1 - Code Entry, Assembly, and Execution PC A B [$1000] N Z V - Record the machine code that is equivalent to the assembly program. This assignment sheet, with your name at the top A. The answers in Table 1. B. The machine code that is equivalent to the assembly program. C. Answers to the following questions: 1. What is the final content of memory location sum? 2. After the execution of the last adda instruction, explain why the flag bits have those particular values? 5. Explain in details how PC changes in Table 1. Why the increment value is not the same for all the instructions? ; export symbols XDEF Entry, Startup ABSENTRY Entry ; export 'Entry' symbol ; Include derivative-specific definitions Replace derivative.inc with mc9s12dg256.inc INCLUDE 'derivative.inc' ROMStart EQU $4000 ; absolute address to place my code/constant data ; variable/data section ORG RAMStart ; Insert here your data definition. Counter DSWT FiboRes DS. W 1 Delete these lines and if your program has data, put it here In data section, write sum dc.bo ;Sum byte stored here In Code section ldaa #$25 ; Load $25 to register A adda #$34 ;Add $34 to A adda #$11 ;Add $11 to A adda #18 ;Add $12 to A adda #%00011100 ;Add $10 to A staa sum ;Store total in 'sum' M[$1000] here: jmp here ; Stay here forever to end program Do not forget to include the mc9s12dg256.inc file that defines some constants, registers, and some memory locations. Table 1 PC A B [$1000] N Z V Page 14 of 15 Lab 1 - Code Entry, Assembly, and Execution PC A B [$1000] N Z V - Record the machine code that is equivalent to the assembly program. This assignment sheet, with your name at the top A. The answers in Table 1. B. The machine code that is equivalent to the assembly program. C. Answers to the following questions: 1. What is the final content of memory location sum? 2. After the execution of the last adda instruction, explain why the flag bits have those particular values? 5. Explain in details how PC changes in Table 1. Why the increment value is not the same for all the instructions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!