register.set

This command sets the value of a register.

Show/hideSyntax

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.

Show/hideExample

Example 174. register.set

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()

Copyright © 2010, 2011 ARM. All rights reserved.ARM DUI 0452G
Non-ConfidentialID092311