THE FUNCTIONS PEEK16(A) AND PEEK32(A) RETURN A VALUE THE HIGH BYTE OF WHICH IS AT ADDRESS A
ACTION
The command POKE_NORMAL modifies the behavior of the functions PEEK16() and PEEK32().
After the command POKE_NORMAL, the functions PEEK16(A) and PEEK32(A) return a value the high byte of which is at address A.
Remark : by default, PEEK16() and PEEK32() have this behavior (high byte in A).
SYNTAX:
PEEK_NORMAL
USE ERROR EXAMPLE
dim v%,address
address=adr(v%)
poke_reverse
poke16 address,2*power(256,1)+power(256,0)
print peek(address)
print peek(address+1)
print "the print is:"
print 1
print 2
print "-----"
print peek16(address)
print "printed value is: "+str$(power(256,1)+2*power(256,0))
print "-----"
peek_reverse
print peek16(address)
print "printed value is: "+str$(2*power(256,1)+power(256,0))
print "-----"
poke_normal
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$(power(256,1)+2*power(256,0))
peek_normal
print "-----"
print peek16(address)
print "printed value is: "+str$(2*power(256,1)+power(256,0))
PEEK_NORMAL
PEEK_NORMAL
SEE ALSO
POKE
POKE16
POKE32
POKE_NORMAL
POKE_REVERSE
PEEK()
PEEK16()
PEEK32()
PEEK_REVERSE