POKE

Syntax:

poke <int address>, <byte or int value>

The POKE command stores a value into the given memory address. The following type conversions are possible:

  • address will be recognized as an unsigned integer
  • if value is an integer, it will be truncated to a byte

Examples:

rem ** turn border to black **
poke 53280, 0
	
rem ** unsigned conversion **
let x = -5
poke x, 0
rem ** which will effectively be the same as:
poke 65531,0

rem ** values are truncated to 8 bits - the MSB is discarded **
poke 53280, 65535
rem ** will be the same as
poke 53820, 255