Writes data to a specified address.
POKE (address) , data
└──┬──┘ └┬─┘
Numeric expression Numeric expression
POKE &H7000, 0
POKE(-1)
is identical to POKE(65535),data
).POKE
statement.DEFSEG = 2
A = POKE &H100, 0
The above does not directly read writet data to address &H100 (256). Instead, 0 is written to the address &H120 (288). (16 x 2 + 256 = 288). Further information of segments can be found under DEFSEG.
10 DEFSEG=&H0
20 FOR I=&7000 TO &H7010
30 POKE I, 0
40 NEXT I
50 END
Clears (assigns zeros) memory from 7000ʰ to 7010ʰ.