Professional Documents
Culture Documents
Being a RISC architecture it has only Load Store type instructions. Data is manipulated within registers
Logical Instructions Comparison Instructions Suffix S on data processing instructions updates flag in CPSR.
Instructions are 32 Bit wide; comes from registers or specified as literals in instruction itself Second operand sent to ALU via Barrel Shifter 32 Bit wide result placed in register ; long multiply instruction produces a 64 Bit result
Arithmetic Instructions
Implements 32 bit addition and subtraction
3 operands form Example
Sub r0,r1,r2 Subs r1,r1,#2
Multiply instruction
Multiplies a pair of registers Long multiply generates a 64 bit result Examples:
Mul r0,r1,r2 Umul r0,r1,r2,r3
Unsigned multiply with result stored in r0 and r1
UMLAL rdlo,rdhi,rm,rs
[Rdhi,rdlo] = [rdhi,rdlo] + (rm*rs)
Logical Instructions
Bitwise logical operations on two source registers
AND, OR, XOR, bit clear Example BIC r0,r1,r2
Compare Instructions
Comp r0,r9 Teq r0,r9
LDM SDM
Mnemonics used for multiple data transfer