Answered step by step
Verified Expert Solution
Question
1 Approved Answer
the course is microprocessor 6. (10 pts) Given the following program: Data2: section org RESULTS: AUGEND: STORE: ADDEND: MSG: OFFSET: ds.b dc.w dc.b EQU dc.b
the course is microprocessor
6. (10 pts) Given the following program: Data2: section org RESULTS: AUGEND: STORE: ADDEND: MSG: OFFSET: 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 Code2: section org $800 LDAA #ADDEND i 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 i 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? Hint: sometimes counting hexadecimal is a lot easier than counting in decimal 6. (10 pts) Given the following program: Data2: section org RESULTS: AUGEND: STORE: ADDEND: MSG: OFFSET: 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 Code2: section org $800 LDAA #ADDEND i 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 i 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? Hint: sometimes counting hexadecimal is a lot easier than counting in decimalStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started