8. How will the assembler generate the Thumb code for the pseudo instructions: a) LDR r3, =25 b) LDR r3, =1000?
Added by Karim A.
Close
Step 1
a) LDR r3, =25 The assembler will generate the Thumb code for this pseudo instruction by first recognizing that the value 25 can be represented in 8 bits. Show more…
Show all steps
Your feedback will help us improve your experience
Andreas Papavassiliou and 60 other Calculus 2 / BC educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Adi S.
In calculating the target address for a branch, a displacement is added to the contents of register _____ .
(b). Write a simple code for each of the following instruction. A is the last 2 digits of your ID as decimal number and B is the (leftward) next 2 digits of your ID. For example, if your ID is @03456789, A = 89 and B=67. Your ID as a decimal number is 3456789. 5. Store 8-bit values A and B to locations 0x20000010 and 0x20000011, respectively. 6. Store repeatedly the 8-bit value B to the locations of 0x20000020 - 0x2000002F. 7. (from the result of 6 above) Load a word value to R2 from the location of 0x20000020 and add it to your entire ID as a decimal number. (c). What is the status of C flag after each of the following codes. u is the last digit of your ID as a hexadecimal number and v is the (leftward) next digit of your ID as a hex number, and so on. For example, if your ID is @03456789, u=9, v=8, w=7, x=6, y=5, and z=4. 8. LDR r0, =0xFFFFFFuv 9. LDR, r0, =0xFFFFFFwx 10. LDR r3, =0x000000yz LDR r1, =0xFFFFFFwx LDR, r5, =0xFFFFFFyz LDR r8, =0x000000uv ADDS r1, r0, r1 ADDS r2, r5, r0 SUBS r2, r3, r8
Recommended Textbooks
Calculus: Early Transcendentals
Thomas Calculus
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD