data.set

This command writes data to memory.

Show/hideSyntax

data.set address [%format] expression [/flag]...

Where:

address

Specifies the address or address range. This can be either an address, an address range, or an expression that evaluates to an address. You can use -- to specify an address range.

format

Specifies additional formatting:

byte

Formats the data as 1 byte

word

Formats the data as 2 bytes

long

Formats the data as 4 bytes

quad

Formats the data as 8 bytes

float.ieee

Formats the data as a 4 byte floating-point.

float.ieeedbl

Formats the data as an 8 byte floating-point.

le

Formats the data as little endian

be

Formats the data big endian.

If no endianness is specified then the debugger searches for this information in the loaded image otherwise little endian is used.

expression

Specifies the data.

flag

Specifies additional flags:

verify

Verifies the write operation.

compare

Compares the data in memory but does not write to memory.

Show/hideExample

Example 170. data.set

data.set r(PC) 0x10                       ; Write 0x10 to address in PC register
data.set 0x100--0x3ff 0x0                 ; Zero initialize memory
data.set 0x8000--0x100 %w 0x2000 /compare 	; Compare data in memory with 0x2000
data.set 0x100--0x3ff 0x0 /verify         ; Zero initialize memory and verify

Copyright © 2010-2012 ARM. All rights reserved.ARM DUI 0452K
Non-ConfidentialID071912