| |||
| Home > RealView Debugger Predefined Macros > Alphabetical predefined macro reference > byte | |||
Returns a byte value from the specified address.
unsigned char byte (addr) void *addr;
where:
addrThe address containing the value to be returned.
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.
The argument default type is specified by using the OPTION command:
OPTION radix = [ decimal | hex ]
To display the contents of the hexadecimal address 0x8338,
enter the following on the command line:
PRINTVALUE byte(0x8338)