3.2.46. word

Returns a word value at the specified address.

Syntax

unsigned short int word (addr)
void *addr;

where:

addr

The address containing the value to be returned.

Description

This macro returns a word value at the specified address. The word macro returns an unsigned short integer value (a two byte word of memory value) for the contents of memory pointed to by the argument addr.

Return value

unsigned short int

The two 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 word(0x8338)
0x00008338 = 16

See also

The following macros provide similar or related functionality:

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