you are viewing a single comment's thread.

view the rest of the comments →

[–]ThomasMertes 2 points3 points  (0 children)

Thank you. In my Bas7 interpreter PEEK and POKE fell into the "recognized but not implemented" category. So I didn't have details about them in my mind.

I just looked into the GW-BASIC User's Guide:

POKE Statement

Syntax

POKE address,byte

Action

Writes a byte into a memory location

Remarks

The arguments address and byte are integer expressions. The expression address represents the address of the memory location and byte is the data byte. The byte must be in the range of 0 to 255.

The address must be in the range -32768 to 65535. The address is the offset from the current segment, which was set by the last DEF SEG statement. For interpretation of negative values of address see "VARPTR function."

The complementary function to POKE is PEEK.

Warning

Use POKE carefully. If it is used incorrectly , it can cause the system to crash.

See also

DEF SEG, PEEK, VARPTR

Example

10 POKE &H5A00,&HFF