WR_HALF
 
Syntax

WR_HALF ( address , number )
Description


The value of the number  is writen into the 2 bytes at address

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

WR_HALF(&H10000000, x)     ' load the 16 bit value of x into &H10000000 and &H10000001
Differences from other BASICs

See also