2.3.13 register.set

Sets the value of a register.

Syntax

register.set name expression

Where:

name

Specifies the name of a register.

expression

Specifies an expression that is evaluated and the result assigned to a register.

Example 2-13 Examples

register.set R0 15           ; Set value of R0 register to 15
register.set R0 (10*10)      ; Set value of R0 register to result of expression
register.set R0 r(R0)+1      ; Increment the value of R0 register
register.set PC main         ; Set value of PC register to address of main()
Non-ConfidentialPDF file icon PDF versionARM DUI0452Z
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.