Changes

Jump to: navigation, search

AArch64 Register and Instruction Quick Start

255 bytes added, 09:28, 18 February 2022
Starter Kit
add r0,r1,99 // load r0 with r1+99
adr r0,''label'' // load r0 with the address ''label'' (this actually calculates an address from the [[Register#Program Counter|PC]] plus an offset)
adrp r0,''label'' // load r0 with the 4K page containing ''label'' (this calculates an address from the [[Register#Program Counter|PC]] plus an offset, and is often followed by an ADD instruction so that the register points exactly to the ''label'')
bl ''label'' // branch (with link) to label - this is a procedure / subroutine / function call
br ''label'' // branch to label - this is a goto

Navigation menu