What is the binary encoding of the following instructions?

a. STRB r1,[r2]
b. LDR r3,[r4,r5]!
c. LDR r3,[r4],r5
d. LDR r3,[r4,#-6]!


I have cheated and used the debugger’s disassembly feature to get

E5C21000

E7B43005

E6943005

E5343006

Consider STRB r1,[r2]. The encoding is 111 (always execute) 01 #PUBWL 001 (r1) 010 (r2) 000000000000

(zero offset)

# = 0 (use offset rather than shift)

P = 0 (preindex but don’t care)

U = 0 (up but don’t care)

W = 0 (word)

L = 1 (load)

The encoding is 1110100001001010000000000000 = E84A0000

Computer Science & Information Technology

You might also like to view...

If data becomes scrambled as a result of a sort, click the _____ button.

A. Undo B. Save C. Repeat D. Sort

Computer Science & Information Technology

Use sample data to populate the fields for three records.

What will be an ideal response?

Computer Science & Information Technology

An ________ enables you to add a set of common Access components to an existing

database. Fill in the blank(s) with correct word

Computer Science & Information Technology

In addition to various page layouts, the ________ Microsoft Word dialog box includes an option to paste a link between the Word document and the presentation

Fill in the blank(s) with correct word

Computer Science & Information Technology