3.2.7. dword

Returns an unsigned long value from a specified address.

Syntax:

unsigned long dword (addr) 
void *addr;

where:

addr

The address containing the value to be returned.

Description

This macro returns an unsigned long value, contained within four bytes of memory, corresponding to the memory contents at the location specified by addr. The dword macro uses the indirection operator to obtain the value.

Return Value

unsigned long

The four byte value located at the specified address.

Rules

The argument default type is specified by using the OPTION command:

OPTION radix = [ decimal | hex ]

Example

To display the contents of the hexadecimal address 0x8338, enter the following on the command line:

PRINTVALUE dword(0x8338)

See also

The following macros provide similar or related functionality:

Copyright © 2002-2009 ARM Limited. All rights reserved.ARM DUI 0175K
Non-Confidential