1.6.7. Operations on symbols and registers

You can perform operations on symbols, on the registers listed in Table 1.5, the internal debugger variables, and board-specific registers. The operations you can perform are listed in Table 1.7.

Table 1.7. Register operations

OperationDescriptionExamples

@var = value

Assign a value to the symbol.

@PC = 0x8000

@var++, @var--

Increment or decrement the value in the symbol.@R6++

@var = @var + value

@var = @var - value

Add a value to, or subtract a value from, the symbol.@R12 = @R11+2

@var = @var * value

@var = @var / value

Multiply or divide the value in the symbol by a specified value. Dividing by zero gives an error message.@R7 = @R7*2
@var &= [~]maskAND the mask value with the contents of the symbol. ~ indicates the inverse of the mask value.@FLG &= 3 @FLG &= ~3
@var |= [~]maskOR the mask value with the contents of the symbol. ~ indicates the inverse of the mask value.@FLG |= 3
@var ^= [~]maskExclusive OR the mask value with the contents of the symbol. ~ indicates the inverse of the mask value.@FLG ^= 3
Copyright © 2002-2007 ARM Limited. All rights reserved.ARM DUI 0175I
Non-Confidential