PEEK_REVERSE

PEEK_REVERSE

THE FUNCTIONS PEEK16(A) AND PEEK32(A) RETURN A VALUE THE LOW BYTE OF WHICH IS AT ADDRESS A

  • Type: Command
  • Parameter: 0
  • Group: System

ACTION

The command POKE_REVERSE modifies the behavior of the functions PEEK16() and PEEK32().

After the command POKE_REVERSE, the functions PEEK16(A) and PEEK32(A) return a value the low byte of which is at address A.

SYNTAX: PEEK_REVERSE

USE

  • The command PEEK_REVERSE is used to modify the behavior of the functions PEEK16() and PEEK32().

ERROR

  • None.

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))

SEE ALSO

POKE

POKE16

POKE32

POKE_NORMAL

POKE_REVERSE

PEEK()

PEEK16()

PEEK32()

PEEK_NORMAL