Question: Microcontroller 9. Given the following program MyCode: section RESULTS: ds.w AUGEND de.w STORE: dc.b ADDEND: EQU this section starts at address $800 5, 8 S20,

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

9. Given the following program MyCode: section RESULTS: ds.w AUGEND de.w STORE: dc.b ADDEND: EQU this section starts at address $800 5, 8 S20, 3A, S12 60 my message 6, 20 de.b OFFSET d.b MyData: section LDAA #ADDEND LDD STORE LDD #AUGEND LDAA OFFSET+1 LDX AUGEND ADDA SCO0, X this section starts at address $700 Hex Hex B= Hex B Hex Hex Hex Hex 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) Answer what are in registers after executing each of the instructions (Fill the blank on the right of each 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. VAR: DC.B S40 VAR #sco LDAA BVS NOP #55 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!