Question: 5. (10 pts) Given the following program: datal: RESULTS: AUGEND: STORE: ADDEND: MSG: OFFSET: section org ds.w dc.b dc.b EQU dc.b dc.w $80 $20 0,

 5. (10 pts) Given the following program: datal: RESULTS: AUGEND: STORE:

5. (10 pts) Given the following program: datal: RESULTS: AUGEND: STORE: ADDEND: MSG: OFFSET: section org ds.w dc.b dc.b EQU dc.b dc.w $80 $20 0, $C6, 8, $45 $20, $3A, $C2, $12 70 "my msg" 20,6 ; i B== codel: section org $900 LDAA #ADDEND A= Hex LDD STORE A Hex BE Hex LDD #STORE A Hex Hex LDAA AUGEND+1 A= Hex LDX AUGEND A Hex X Hex ADDA 1, X A= 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? i i i i 6. (10 pts) Given the following program: Data2: RESULTS: AUGEND: STORE: ADDEND: MSG: OFFSET: section org ds.b dc.w dc.b EQU dc.b dc.w $900 $10 $918,01, $918 $33, $2A, $F2, $12, 120 80 "my second msg" 20,6 i Code2: section org $800 LDAA #ADDEND A= Hex LDD STORE i A= Hex B== Hex LDD #STORE i A- Hex B== Hex LDAA AUGEND+1 i A= Hex LDX AUGEND i A Hex X== Hex ADDA 1, X ; A= 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? 5. (10 pts) Given the following program: datal: RESULTS: AUGEND: STORE: ADDEND: MSG: OFFSET: section org ds.w dc.b dc.b EQU dc.b dc.w $80 $20 0, $C6, 8, $45 $20, $3A, $C2, $12 70 "my msg" 20,6 ; i B== codel: section org $900 LDAA #ADDEND A= Hex LDD STORE A Hex BE Hex LDD #STORE A Hex Hex LDAA AUGEND+1 A= Hex LDX AUGEND A Hex X Hex ADDA 1, X A= 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? i i i i 6. (10 pts) Given the following program: Data2: RESULTS: AUGEND: STORE: ADDEND: MSG: OFFSET: section org ds.b dc.w dc.b EQU dc.b dc.w $900 $10 $918,01, $918 $33, $2A, $F2, $12, 120 80 "my second msg" 20,6 i Code2: section org $800 LDAA #ADDEND A= Hex LDD STORE i A= Hex B== Hex LDD #STORE i A- Hex B== Hex LDAA AUGEND+1 i A= Hex LDX AUGEND i A Hex X== Hex ADDA 1, X ; A= 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

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!