CPSC 2310 - DAY 8 SEPTEMBER 9, 2016 ================================================================================ ARM INSTRUCTIONS ---------------- ARM instructions are written as an operation code, followed by zero or more operands Operands may be constants (8-bit values) registers (r0-r12) or memory ref. ([r0] load/store .only load and store instructions can access memory Immediates are numerical constants .precede with # /* f = g + 10 */ ADD r0,r1,#10 // (In ARM) r0 and r1 are associated with f and g The second operand is the number 10 Rd is the destination register Rn is the source register add r0,r1,#3 //add r1, and the num 3 and store in r0 mov r0, #15 //store number 15 in r0 // is used for comments /* */ is also avaliable @ - beginning of a line comment label_name: ^ label in ARM All instructions in ARM may be conditional.