- Function
Write a word (two bytes) to memory.
- Header
- Declaration
void POKEW (unsigned addr, unsigned val);
- Description
The function writes the value
val
to the absolute memory address given byaddr
. The low byte ofval
is written to theaddr
, the high byte is written toaddr+1
.- Limits
- The function is actually a macro.
- This function depends highly on the platform and environment.
- Careless use will cause the program to act strange or may crash the machine.
- The order in which the two bytes are written is unspecified and may depend of the address expression used.
- Availability
cc65
- See also
- Example
None.