Keil™, An ARM® Company

CARM User's Guide

Discontinued

LDAA Instruction

The LDAA instruction loads the address of a local variable or function argument into the specified register.

LDAA Rd, var

Where

RdIs the register that is loaded with the address of var.
varIs the name of the variable.

The LDAA instruction generates different code depending on the location of var.

  • When var is located on the stack and its displacement is within the range of ARM or Thumb instructions, the following code is generated for LDAA:
    ADD Rd,R13,#(displacement of var)
    
  • When var is located on the stack but its displacement is outside the range of ARM or Thumb instructions, the following code is generated for LDAA:
    LDR Rd,#(displacement of var)
    ADD Rd,Rd,R13
    

Note

  • The LDAA instruction is not an ARM or Thumb instruction. It is only supported by the inline assembler in the CARM Compiler.