# 2-m - Fixed arrows STI Indirect Addressing Mode Example(1a...

This preview shows pages 1–5. Sign up to view the full content.

21 STI: Indirect Addressing Mode Example (1a) PC +1 = 0x4001 (1b) PCoffset9 = 0x00CC (2) MAR = 0x40CD (3) MDR Memory( MAR ) (4) MAR MDR (5) MDR R3 (6) Memory( MAR ) MDR Fixed arrows

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
31 Example 0001 010 010 1 00101 ADD R2 R2 #5 0101 010 010 1 00000 AND R2 R2 #0 0011 010 111111011 ST R2 #-5 0001 010 001 1 01110 ADD R2 R1 #14 1110 001 111111101 LEA R1 #-3 Instruction R2 R2 + #5 = #5 R2 AND x0000 = x0000 R2 0 PC +1 + #-5 = x30F9 + #-5 = x30F4 M[0x30F4] R2 R2 R1 + #14 = x3102 PC +1 = x30F7 R1 PC +1 + #-3 = x30F4 Comments x30FA x30F9 x30F8 x30F7 x30F6 Address Clarified base of numbers
32 Example PC +1 + #-9 = x30FD + #-9 = x30F4 R3 M[M[x30F4]] R3 M[x3102] R3 5 1010 011 111110111 LDI R3 #-9 x30FC 0111 010 001 001110 STR R2 R1 #14 Instruction R1 + #14 = x30F4 + #14 = x3102 M[0x3102] R2 = 5 Comments x30FB Address Clarified base of numbers

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
33 Daily Quiz • Encode these operations: x3010 Load the address x308B into R4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 7

2-m - Fixed arrows STI Indirect Addressing Mode Example(1a...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online