3.2.4. byte

Returns a byte value from the specified address.

Syntax:

unsigned char byte (addr)
void *addr;

where:

addr

The address containing the value to be returned.

Description

This macro returns a value between 0 and 255, corresponding to the memory contents at the location specified by addr. The byte macro uses the indirection operator to obtain the value.

Return Value

unsigned char

The 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 byte(0x8338)

See also

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