Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following assembly program: AREA prog1, code, READONLY ENTRY MOV r3,#2 LDR r1, =0xCCCCCCCC ;in binary 1100 1100 1100 1100 1100 1100 1100 1100

Consider the following assembly program: AREA prog1, code, READONLY ENTRY MOV r3,#2 LDR r1, =0xCCCCCCCC ;in binary 1100 1100 1100 1100 1100 1100 1100 1100 L1 LSL r1,r1,#5 L2 LSL r1,r1,r3 L3 LSR r1,r1,#10 L4 LSR r1,r1,r3 L5 ASR r1,r1,#2 L6 LSL r1,r1,#15 L7 ASR r1,r1,#16 L8 ASR r1,r1,r3 L9 ROR r1,r1,#4 LA ROR r1,r1,r3 LB RRX r1,r1 LC RRX r1,r1 LD RRX r1,r1 LE RRX r1,r1 loop B loop END Manually calculate the value of r1 after executing each instruction. Question 1 of 35.0 Points The value of r1 in hexadecimal without any leading zeros after executing line LC is 0x

image text in transcribed

Part 1 of 3 - Consider the following assembly program: AREA progi, code, READONLY ENTRY MOV r 3, #2 LDR r1, Oxcccccccc ;in binary 1100 1100 1100 1100 1100 1100 1100 1100 11 12 13 14 LSL r1,r1,#5 LSL ri, r1,13 LSR r1,r1, #10 LSR ri, r1,73 ASR r1, 21, #2 LSL ri,r1, #15 ASR ri, r1, #16 ASR ri, r1, r3 15 16 17 18 19 ROR r1,r1, #4 LA ROR r1, r1,13 IB RRX ri,r1 IC RRX ri,r1 ID RRX ri,r1 LE RRX r1,r1 loop B loop END Manually calculate the value of r1 after executing each instruction. Question 1 of 3 5.0 Points The value of r1 in hexadecimal without any leading zeros after executing line LC is Ox Mark for Review What's This

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

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions