Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved 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 :

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

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

More Books

Students also viewed these Databases questions

Question

1. Which is the most abundant gas presented in the atmosphere?

Answered: 1 week ago

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago