If r1 = 00FF16, and r2 = 4, what is the value of r0 after each of the following instructions has been executed (assume that each instruction uses the same data)?

a. ADD r0,r1,r1, LSL #2
b. ADD r0,r1,r1, LSL #4
c. ADD r0,r1,r1, ROR #4



a. r1 is shifted left twice (multiplied by 4) and added to r1. Therefore r0 = 5 × r1 = 4FB
b. r1 is shifted left four times (x 16) and added to r1. Therefore r0 = 17 × r1 = 10EF
c. r1 is rotated right 4 times to get 1111000000000000000000001111 and added to FF to get F0000000F +
000000FF = F0000010E

Computer Science & Information Technology

You might also like to view...

What is the port number for LDAP - Lightweight Directory Access Protocol?

What will be an ideal response?

Computer Science & Information Technology

Answer the following statements true (T) or false (F)

1) Pseudocode is a simple programming language. 2) The if selection structure performs an indicated action when the condition is true. 3) The if/else selection structure is a single-selection structure. 4) A fatal logic error causes a program to execute and produce incorrect results. 5) A repetition structure performs the statements in its body while some condition remains true.

Computer Science & Information Technology

Using Dreamweaver, you can import objects created in other programs.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

An anchor specifies that a pattern must appear at that position in the string.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology