Question: Problem 3- 5: [60 points] Consider the code give below in the 3rd column. The associated code memory snapshot of the data memory, initial register

 Problem 3- 5: [60 points] Consider the code give below inthe 3rd column. The associated code memory snapshot of the data memory,

Problem 3- 5: [60 points] Consider the code give below in the 3rd column. The associated code memory snapshot of the data memory, initial register contents, initial stack contents, are given below. Use the give information to answer the questions below Code Mem. Address Y(S) 338002 0C30 PC(S) SP(S) A(S) B()X(S) C400 DFF2 44 33 Code Memory Contents Data Memroy Addr. Mach RTL Addr EA Inst. Code ($ Inst. Mode C400 C608 LDAB #8 address Data Addr LOOP 2 06 DO00 JMP SUB1 8001 LOOP2 8002 M(X) A STAA 2,X A6 3E LDY $80A0m(80A0:80A1) FD 80A0 pare A & B 18 17CBA 26 FBBEQ LOOP 16 D000 JSR SUBI A600 LDAA 0, X 80A0 80 80A1 8100 D000 SUB1 DFF1 8101 D000 m(sp)A, spsp-1 m(sp)E B spesp-1 10 PSHA 36 SP DFF2 PSHB DFF3 12 13 14 15 YY-1 03 B1 8100 CMPA $8100 26 FB BEQ LOOP1 m(sp:sp-1)*A, PSHY 35 sp sp-2 17 PULD spsp+2 xm(sp:sp+1 ) spsp+2 3A 18 PULX 30 19 RTS Problem 3- 5: [60 points] Consider the code give below in the 3rd column. The associated code memory snapshot of the data memory, initial register contents, initial stack contents, are given below. Use the give information to answer the questions below Code Mem. Address Y(S) 338002 0C30 PC(S) SP(S) A(S) B()X(S) C400 DFF2 44 33 Code Memory Contents Data Memroy Addr. Mach RTL Addr EA Inst. Code ($ Inst. Mode C400 C608 LDAB #8 address Data Addr LOOP 2 06 DO00 JMP SUB1 8001 LOOP2 8002 M(X) A STAA 2,X A6 3E LDY $80A0m(80A0:80A1) FD 80A0 pare A & B 18 17CBA 26 FBBEQ LOOP 16 D000 JSR SUBI A600 LDAA 0, X 80A0 80 80A1 8100 D000 SUB1 DFF1 8101 D000 m(sp)A, spsp-1 m(sp)E B spesp-1 10 PSHA 36 SP DFF2 PSHB DFF3 12 13 14 15 YY-1 03 B1 8100 CMPA $8100 26 FB BEQ LOOP1 m(sp:sp-1)*A, PSHY 35 sp sp-2 17 PULD spsp+2 xm(sp:sp+1 ) spsp+2 3A 18 PULX 30 19 RTS

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!