Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Register Value Memory Address Memory Data RO Ox2000 8007 Ox12 R1 0x34 0x0107 B36E 0x2000 8000 0x2000 8004 OxF012 5634 R2 0x2000 8006 0x2000 8005

image text in transcribed

Register Value Memory Address Memory Data RO Ox2000 8007 Ox12 R1 0x34 0x0107 B36E 0x2000 8000 0x2000 8004 OxF012 5634 R2 0x2000 8006 0x2000 8005 0x2000 8004 0x56 R3 0x78 PC Ox0800 8000 Ox9A 0x2000 8003 0x2000 8002 LR Ox0800 4000 OxBC Label Value Ox2000 8001 OxDE sum Ox0800 2000 0x2000 8000 OxFO For each of the following instructions, determine which register(s) and/or memory location(s) have been modified and their updated values using the following format. Assume little endian format. Note: for each instruction, start with the initial values given above. Modified Locations/Registers Current Updated Value a) ADD RO, RO, R3 b) SUB R3, RO, #10 c) AND RO, RO, R3, LSL #24 d) MOV RO, #0x55 e) LDR R2, =0x2000 8002 f) LDR RO, [R1, #4]! g) LDR RO, (R1), #4 h) STR RO, [R1, #4] i) BX LR j) BL sum Register Value Memory Address Memory Data RO Ox2000 8007 Ox12 R1 0x34 0x0107 B36E 0x2000 8000 0x2000 8004 OxF012 5634 R2 0x2000 8006 0x2000 8005 0x2000 8004 0x56 R3 0x78 PC Ox0800 8000 Ox9A 0x2000 8003 0x2000 8002 LR Ox0800 4000 OxBC Label Value Ox2000 8001 OxDE sum Ox0800 2000 0x2000 8000 OxFO For each of the following instructions, determine which register(s) and/or memory location(s) have been modified and their updated values using the following format. Assume little endian format. Note: for each instruction, start with the initial values given above. Modified Locations/Registers Current Updated Value a) ADD RO, RO, R3 b) SUB R3, RO, #10 c) AND RO, RO, R3, LSL #24 d) MOV RO, #0x55 e) LDR R2, =0x2000 8002 f) LDR RO, [R1, #4]! g) LDR RO, (R1), #4 h) STR RO, [R1, #4] i) BX LR j) BL sum

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

The Database Experts Guide To Database 2

Authors: Bruce L. Larson

1st Edition

0070232679, 978-0070232679

More Books

Students also viewed these Databases questions