Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions

Question

Explain the steps involved in training programmes.

Answered: 1 week ago