cp-1_lect_13 - contents of the memory location Operand is...

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

View Full Document Right Arrow Icon
5/10/10 LD (PC-Relative) operand location must be within 256 locations of the
Background image of page 1

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

View Full DocumentRight Arrow Icon
5/10/10 LD (PC-Relative): An LD R2, x1AF x4018 x4019
Background image of page 2
5/10/10 ST (PC-Relative)
Background image of page 3

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

View Full DocumentRight Arrow Icon
5/10/10 LDI (Indirect) address data Same as PC-Relative
Background image of page 4
5/10/10 LDI (Indirect) : An Example LDI R3, x1CC x4A1B x4A1C
Background image of page 5

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

View Full DocumentRight Arrow Icon
5/10/10 STI (Indirect)
Background image of page 6
5/10/10 LDR (Base+Offset Addressing)
Background image of page 7

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

View Full DocumentRight Arrow Icon
5/10/10 LDR: An Example LDR R1, R2, x1D 001 010
Background image of page 8
5/10/10 STR (Base+Offset)
Background image of page 9

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

View Full DocumentRight Arrow Icon
5/10/10 Load Effective Address (Immediate mode) Computes address like PC-relative and stores the result into a register Note: The address is stored in the register, not the
Background image of page 10
Background image of page 11

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

View Full DocumentRight Arrow Icon
Background image of page 12
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: contents of the memory location Operand is obtained without any memory access I Immediate 5/10/10 LEA: An Example LEA R5, # -3 Addressing mode example Address Instruction Comments x30F6 1 1 1 0 0 0 1 1 1 1 1 1 1 1 0 1 R1 ? PC – 3 = x30F4 x30F7 0 0 0 1 0 1 0 0 0 1 1 0 1 1 1 0 R2 ? R1 + 14 = x3102 x30F8 0 0 1 1 0 1 0 1 1 1 1 1 1 0 1 1 M[PC - 5] R2 M[x30F4] x3102 x30F9 0 1 0 1 0 1 0 0 1 0 1 0 0 0 0 0 R2 ¹ x30FA 0 1 1 1 0 1 0 0 0 1 0 0 1 1 1 0 M[R1+14] R2 M[x3102] × LEA ADD ST AND STR...
View Full Document

This note was uploaded on 05/07/2010 for the course CS&IS TA C162 taught by Professor Kavitha during the Spring '09 term at Birla Institute of Technology & Science.

Page1 / 12

cp-1_lect_13 - contents of the memory location Operand is...

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

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