This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: CSE 379 ARM Instruction Set: Loading & Storing Load/Store Instruction Types & Single Register Transfer & Multiple Register Transfer & Swap Single Register Transfer Load/Store & LDR Load word into a register Rd mem32[address] & STR Store a word from a register into memory Rd mem32[address] & LDRB Load an unsigned byte into a register Rd mem8[address] & STRB Store a byte from a register into memory Rd mem8[address] & LDRH Load an unsigned halfword into a register Rd mem16[address] & STRH Store a halfword from a register into memory Rd mem16[address] & LDRSB Load a signed byte into a register Rd Sign-Extended(mem8[address]) & LDRSH Load a signed halfword into a register Rd Sign-Extended(mem16[address]) Addressing Modes & An addressing mode describes how the desired location in memory is specified & Effective address The address accessed The addressing mode defines how it is determined & Register Indirect A register contains the address that will be accessed Syntax: [rn] Example LDR r0, [r1] r1 contains the address Word is loaded into r0 r0 mem32[r1] STR r0, [r1] r1 contains the address Word contained in r0 is stored at memory location pointed to by r1...
View Full Document
- Spring '11