POKE

POKE A,V

WRITES THE VALUE V (BYTE FROM 0 TO 255) AT ADDRESS A

  • Type: Command
  • Parameters: 2
  • Group: Reference

ACTION

The command POKE A,V writes the value V at memory address A.

V is a byte from 0 to 255.

A is the address of this byte. The memory is looked by POKE as a series of bytes, each byte having its own address.

SYNTAX: POKE A,V

  • A = address
  • V = integer or real from 0 to 255

USE

  • The command POKE is used to write a byte (8 bits) at a memory address.

ERROR

  • If A or V is not a correct expression.
  • If V is less than 0 or greater than 255.

EXAMPLE

dim i%

poke adr(i%),20

print i%

caption 0,"20 is printed"

SEE ALSO

POKE16

POKE32

POKE_NORMAL

POKE_REVERSE

PEEK()

PEEK16()

PEEK32()

PEEK_NORMAL

PEEK_REVERSE