Question: Write a single ARM assembly language instruction equivalent to the instruction sequence shown below. MOV r12, r12, LSR #4 ADD r12, r3, r12 Answer :

Write a single ARM assembly language instruction equivalent to the instruction sequence shown below.

MOV r12, r12, LSR #4

ADD r12, r3, r12

Answer : ADD r12, r3, r12, LSR #4

What are the contents of register R9 after the following instructions have executed? Assume R1 and R6 contain Ox08CB85A1 and 0x88EC75A9 respectively.

ADD R9, R1, R6, ASR #25

Write a single line of high-level language pseudocode that describes the following ARM assembly language instruction sequence in terms of r0, r3, r5, and r8.

SUB r10, r3, r6

RSB r10, r10, r10, LSL #1

ADD r10, r8, r10

Write a single line of ARM assembly code, which uses the bit clear (BIC) instruction to clear 15 and 22 in register R4 if possible?

Write a single line of ARM assembly code to set bits 5 and 8 in register r10?

Write a two line of ARM assembly code to invert bits 30 and 8 in register r10?

How many rotate numbers you need to return R10 to its original shape using only RRX instruction? Just give the number?

Write a short ARM Assembly program which implements the following line of high level language pseudocode. Assume all source registers may be used as scratch registers.

R0 =(R3 * 129) /8 + (1700 R2) * R1

Write a single ARM assembly language instruction, which will multiply an integer stored in r3 by 9/8, placing the product in r4, without using an MUL or Division at all?

If r0 = 0x00008104, can you use shift left and arithmetic shift write this register to extend the 16-bit number sign (0x8104) to 32-bit? Means: 0x00008104 becomes 0XFFFF8104? Write the two codes?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!