Question: the course is microprocessor 7. (10 pts) Given the following program: Data3: RESULTS: AUGEND: STORE: ADDEND: MSG: OFFSET: section org dc.w ds.w dc.b EQU dc.b
the course is microprocessor


7. (10 pts) Given the following program: Data3: RESULTS: AUGEND: STORE: ADDEND: MSG: OFFSET: section org dc.w ds.w dc.b EQU dc.b dc.w $480 60 $60 9, $D5, $3A, $F2,5, $50 $544 "welcome" 20,6 Code3: section org $800 LDAA ADDEND i LDD #STORE i LDD STORE i LDAA MSG+1 i LDX AUGEND+$CO i ADDA 1, X i B== B== Hex Hex A= A= A= A= A= A= Hex Hex Hex Hex Hex Hex X== Hex (i) Show the addresses of all labels in hex (in front of each label). (ii) How many bytes total are reserved in .data section? (iii) What is in register A after executing each of the instructions (Fill the blank on the right of each instruction? Hint: sometimes counting hexadecimal is a lot easier than counting in decimal 7. (10 pts) Given the following program: Data3: RESULTS: AUGEND: STORE: ADDEND: MSG: OFFSET: section org dc.w ds.w dc.b EQU dc.b dc.w $480 60 $60 9, $D5, $3A, $F2,5, $50 $544 "welcome" 20,6 Code3: section org $800 LDAA ADDEND i LDD #STORE i LDD STORE i LDAA MSG+1 i LDX AUGEND+$CO i ADDA 1, X i B== B== Hex Hex A= A= A= A= A= A= Hex Hex Hex Hex Hex Hex X== Hex (i) Show the addresses of all labels in hex (in front of each label). (ii) How many bytes total are reserved in .data section? (iii) What is in register A after executing each of the instructions (Fill the blank on the right of each instruction? Hint: sometimes counting hexadecimal is a lot easier than counting in decimal
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
