1.3.126 set, set variable

Evaluates an expression and assigns the result to a variable, register or memory.

Syntax

set [variable] expression

Where:

expression

Specifies an expression and assigns the result to a variable, register, or memory address.

Example 1-129 Examples

set variable myVar=10                               # Assign 10 to variable myVar
set variable $PC=0x8000                             # Assign address 0x8000 to
                                                    # PC register
set variable $CPSR.N=0                              # Clear N bit
set variable (*(int*)0x8000)=1                      # Assign 1 to address 0x8000
set variable *0x8000=1                              # Assign 1 to address 0x8000
set variable strcpy((char*)0x8000,"My String")      # Assign string to address 0x8000
set variable memcpy(void*)0x8000,{10,20,30,40},4)   # Assign array to address 0x8000
Non-ConfidentialPDF file icon PDF versionARM DUI0452Z
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.