This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: MOV r0, r0, LSR #4 does NOT perform the integer division of r0 by 16 when r0 initially contains -1424. How should this instruction be modified to perform the operation described above? 5. Write a single ARM assembly language instruction which will multiply an integer stored in r3 by 33, placing the product in r4. 6. Write a single ARM assembly language instruction equivalent to the instruction sequence shown below. MOV r8, #37 SUB r8, r8, r2 7. Write a single line of pseudocode in a high-level language that defines the following ARM assembly language instruction sequence in terms of r0, r1, r3, r5, and r8. SUB r0, r3, r5 ADD r0, r0, r0, LSL #1 ADD r0, r8, r0 8. Write a single line of ARM assembly code which uses the bit clear (BIC) instruction to clear bits 5 and 8 in register r10....
View Full Document
This document was uploaded on 11/03/2011 for the course CSE 380 at SUNY Buffalo.
- Spring '11