Changes

Jump to: navigation, search

AArch64 Register and Instruction Quick Start

190 bytes added, 00:03, 24 February 2015
Starter Kit
b.lt ''label'' // branch to label if less
b.gt ''label'' // branch to label if greater
cmp r0,r1 // compare register r0 with register r1. The comparison sets flags in the processor status register which affect conditional branches. cmp r0,99 // compare the number 99 with register r0. The comparison sets flags in the processor status register which affect conditional branches.
ldr r0,[r1,0] // load register r0 from the address pointed to by (r1 + (0 * ''size'')) where ''size'' is 8 bytes for 64-bit stores, 4 bytes for 32-bit stores
ldr w0,[r1,0] // like above but reads 32 bits only - note the use of w0 instead of r0 for the source register name

Navigation menu