10.07.2015 Views

Instruction Sets

Instruction Sets

Instruction Sets

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

64 CHAPTER 2 <strong>Instruction</strong> <strong>Sets</strong>ADDADCSUBSBCRSBRSCMULMLAAddAdd with carrySubtractSubtract with carryReverse subtractReverse subtract with carryMultiplyMultiply and accumulateArithmeticANDORREORBICBit-wise andBit-wise orBit-wise exclusive-orBit clearLogicalLSLLSRASLASRRORRRXLogical shift left (zero fill)Logical shift right (zero fill)Arithmetic shift leftArithmetic shift rightRotate rightRotate right extended with CFIGURE 2.9ARM data instructions.Shift/rotateValues are transferred between registers and memory using the load-store instructionssummarized in Figure 2.12. LDRB and STRB load and store bytes rather thanwhole words,while LDRH and SDRH operate on half-words and LDRSH extends thesign bit on loading. An ARM address may be 32 bits long. The ARM load and storeinstructions do not directly refer to main memory addresses, since a 32-bit addresswould not fit into an instruction that included an opcode and operands. Instead,theARM uses register-indirect addressing. In register-indirect addressing,the value

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!