POKE_NORMAL

POKE_NORMAL

THE COMMANDS POKE16 A,V AND POKE32 A,V WRITE V WITH THE HIGH BYTE OF V AT ADDRESS A

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

ACTION

The command POKE_NORMAL modifies the behavior of the commands POKE16 et POKE32.

After the command POKE_NORMAL, POKE16 A,V writes the 16-bit value V at addresses A and A+1, with the high byte of V at address A.

After the command POKE_NORMAL, POKE32 A,V writes the 32-bit value V at addresses A, A+1, A+2, A+3, with the high byte of V at address A.

Remark : by default, POKE16 and POKE32 have this behavior (high byte in A).

SYNTAX: POKE_NORMAL

USE

  • The command POKE_NORMAL is used to come back to the behavior by default of the commands POKE16 and POKE32.

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_REVERSE

PEEK()

PEEK16()

PEEK32()

PEEK_NORMAL

PEEK_REVERSE