Problem 1 [10 points] Consider the following assembly program. ROMStart RAMStart EQU $4000 EQU $1000 Entry: _Startup: MO
Posted: Fri Jul 08, 2022 6:21 am
questions: 1. What are the addressing modes used in lines 1, 3, 5, and 6? ;10 2. What is the content of the following registers when the infinite loop is reached? (Enter "??" if impossible to know and consider using labels in your answers when actual numbers are unknown). ;11 ;12 ; Reset Vector X:
Problem 1 [10 points] Consider the following assembly program. ROMStart RAMStart EQU $4000 EQU $1000 Entry: _Startup: MORE: STRING TARGET DONE: A: Y: ORG RAMStart ORG ROMStart CLRA CLRB LDX #STRING LDAA 1, X+ BEQ DONE CMPA TARGET BNE MORE INCB JMP MORE BRA DONE ORG $3000 FCC FCB FCC ; Interrupt Vectors ORG $FFFE DC.W Entry B: ܚܪ ܐ ܢ ܠ ܟ ܗ ܢ ܣ ܩ ܚ ܕ ܝ PC: ;2 ;3 3. In one sentence, what does this program do? ;4 D: :5 :6 10 :7 ;8 "A PIECE-OF-CAKE EXAM THIS IS..." 0 ;9 Answer the following