Question: Using the ARM Architectural Reference Manual or Appendices E and F of the textbook to find the machine codes (Instruction Encoding) for the following instructions:

Using the ARM Architectural Reference Manual or Appendices E and F of the textbookto find the machine codes (Instruction Encoding) for the following instructions:

ADDS r2, r2, #10

ADD r2, r2, #10

Hints:

Instruction Encoding for data processing instructions with modified immediate in parts (a) and (b) above follows the following formats

ADDS Rdn, #imm8 (16 bit instruction)

Bit#

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

setting

0

0

1

1

0

Rdn

#imm8

ADD{S} Rd, Rn, #const (32-bit instruction)

31-25

24

23

22

21

20

19-16

15

14-12

11-8

7-6

5-4

3-0

11110i0

1

0

0

0

S

Rn

0

imm3

Rd

imm8

imm12=i: imm3:imm8

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!