RD_HALF
 
Syntax

RD_HALF ( address )
Description


The value of the halfword at address is returned. That value is unsigned, so 0 to 65535 can be expected.

This is a compiler change and is a feature of compilers 9.36 and later.

Some ARMs allow unaligned accesses, but others that causes a memory fault.  The LPC17xx and LPC4xxx allow un-aligned access.

Example

x = RD_HALF(&H10000000)     ' load the 16 bit value at &H10000000  and &H10000001 into x
Differences from other BASICs

See also