POKE number1, number2


This instruction is used store the byte value number2 at the memory address specified by number1. By default, ASIC uses its default data segment address, however, this may be overridden with the DEFSEG statement.


DEFSEG = &hexB800
POKE 0,1
The above statements will store a byte with the binary value of "1" in the first byte of video memory for a CGA/EGA/VGA card.


This statement is not recommended for beginners. Directly overwriting memory locations can be disastrous, unless you know what is stored at that address. This can cause program "hangs", system crashes, etc.

Since the Intel 8088 architecture is segmented in 64k segments, number2 is limited to the range of 0-65535.

See Also

  • PEEK