Question: 9. Given the following program MyCode section RESULTS: ds.w AUGEND: dc.w STORE: ADDEND EQU MSG OFFSET this section starts at address $800 $200 5, 8

 9. Given the following program MyCode section RESULTS: ds.w AUGEND: dc.w

9. Given the following program MyCode section RESULTS: ds.w AUGEND: dc.w STORE: ADDEND EQU MSG OFFSET this section starts at address $800 $200 5, 8 S20. 3A. $12 60 "my message" 6. 20 dc.b dc.b dc.b MyData LDAA #ADDEND LDD STORE LDD #AUGEND LDAA OFFSET+1 LDX AUGEND ADDA SC00. X section this section starts at address $700 Hex Hex B- Hex B Hex Hex Hex Hex ex (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) Answer what are in registers after executing each of the instructions (Fill the blank on the right of each ex instruction) 10. What values can there be in accumulator A when the following program reach the NOP instruction? The NOP instruction does not affect the contents of registers DC.B LDAA ADDA BVS LDAA NOP $40 VAR #SCO DONE #55 VAR: DONE 11. In which situation, is Carry flag set during addition? 12. In which situation, is Borrow flag set during subtraction? 13. In which situation, is oVerflow flag set during addition? 14. In which situation, is oVerflow flag set during subtraction

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!