Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can you help me show the steps that leads to how to get the answers in red because I dont know how to reach the
Can you help me show the steps that leads to how to get the answers in red because I dont know how to reach the answers. You only need to show me the EA and Values, I know how to get the Addressing Modes
Question2 Answer the following questions with reference to the assembly program below. Before the code is executed, the initial content of memory and registers is shown in the figure below. address memory 0x11 0x22 0x33 0x44 0x55 0x66 0x77 0x88 register 0x00002004 RO 0x0000.2002 OXAAAA AAAA R1 0x00002003 0x8888 BBBBR2 00000-2004 5678 R3 0000.20 0x0000.0001 R4 0x0000.2006 0x1234. 0x0000.2008 LDRSB LDRSB STRH R1 , R2, [R0 ] , #2 [R0, R4, LSL #1]! R3 , [R0 , #-6] 1) What is the addressing mode and effective address of each instruction? (6 points) Instruction Addressing Mode LDRSB R 1, 1R01#2 LDRSES R2. IRI, R4. LSL "1 Post-indesed Pre-indexed with writeback EA 0s0000.2004 0ve000-2008 R3. IRO, 8-6 Pre-indesed 2) What will be the values in hex) stored in the registers after the code segment is executed? (5 points) Register Value RO O0000.2008 RI 0000.0044 R2 OFFFFFF88 R3 0s 1234.5678 Question2 Answer the following questions with reference to the assembly program below. Before the code is executed, the initial content of memory and registers is shown in the figure below. address memory 0x11 0x22 0x33 0x44 0x55 0x66 0x77 0x88 register 0x00002004 RO 0x0000.2002 OXAAAA AAAA R1 0x00002003 0x8888 BBBBR2 00000-2004 5678 R3 0000.20 0x0000.0001 R4 0x0000.2006 0x1234. 0x0000.2008 LDRSB LDRSB STRH R1 , R2, [R0 ] , #2 [R0, R4, LSL #1]! R3 , [R0 , #-6] 1) What is the addressing mode and effective address of each instruction? (6 points) Instruction Addressing Mode LDRSB R 1, 1R01#2 LDRSES R2. IRI, R4. LSL "1 Post-indesed Pre-indexed with writeback EA 0s0000.2004 0ve000-2008 R3. IRO, 8-6 Pre-indesed 2) What will be the values in hex) stored in the registers after the code segment is executed? (5 points) Register Value RO O0000.2008 RI 0000.0044 R2 OFFFFFF88 R3 0s 1234.5678 Step 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