WRITES THE 16-BIT VALUE V (FROM 0 TO 65535) AT ADDRESSES A AND A+1
ACTION
The command POKE16 A,V writes the 16-bit value V (from 0 to 65535) at memory addresses A and A+1.
In NORMAL mode, the high byte of V is written at address A and the low byte of V is written at adress A+1.
In REVERSE mode, the low byte of V is written at address A and the high byte of V is written at adress A+1.
By default, the mode is NORMAL. The mode can be changed by the commands POKE_REVERSE and POKE_NORMAL.
Remark : The memory is looked by POKE16 as a series of bytes, each byte having its own address.
SYNTAX:
POKE16 A,V
USE ERROR EXAMPLE
dim v%,address
address=adr(v%)
poke16 address,2*power(256,1)+power(256,0)
print peek(address)
print peek(address+1)
print "the print is:"
print 2
print 1
print "-----"
print peek16(address)
print "printed value is: "+str$(2*power(256,1)+power(256,0))
POKE16
POKE16 A,V
SEE ALSO
POKE
POKE32
POKE_NORMAL
POKE_REVERSE
PEEK()
PEEK16()
PEEK32()
PEEK_NORMAL
PEEK_REVERSE