2-m - Fixed arrows STI: Indirect Addressing Mode Example...

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

View Full Document Right Arrow Icon
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
Background image of page 1

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

View Full DocumentRight Arrow Icon
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
Background image of page 2
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
Background image of page 3

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

View Full DocumentRight Arrow Icon
33 Daily Quiz • Encode these operations: x3010 Load the address x308B into R4
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 7

2-m - Fixed arrows STI: Indirect Addressing Mode Example...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online