Futurebasic/Language/Reference/poke

From Wikibooks, open books for an open world
Jump to navigation Jump to search

POKE[edit | edit source]

Syntax[edit | edit source]

POKE [BYTE]
POKE WORD
POKE LONG

Shorthand syntax:

| address&, byteExpr
% address&, shortIntExpr
& address&, longIntExpr

Description[edit | edit source]

These statements copy the value in byteExpr, shortIntExpr or longIntExpr into the 1, 2 or 4 memory bytes (respectively) which start at location address&. The address& should be a long integer expression, or a POINTER variable.

See Also[edit | edit source]

PEEK; VARPTR; BLOCKMOVE; LET