PEEK32()

PEEK32(A)

RETURNS THE CONTENT (32-BIT VALUE FROM 0 TO 4294967295) OF ADDRESSES A, A+1, A+2 AND A+3

  • Type: Function
  • Parameter: 1
  • Group: Reference

ACTION

The function PEEK32(A) returns a 32-bit value the content of which is found at addresses A, A+1, A+2 and A+3.

In NORMAL mode, the content of address A is the high byte and the content of address A+3 is the low byte of the returned value.

In REVERSE, the content of address A is the low byte and the content of address A+3 is the high byte of the returned value.

By default, the mode is NORMAL. The mode can be changed by the commands PEEK_REVERSE and PEEK_NORMAL.

PEEK32 returns a value from 0 to 4294967295.

SYNTAX: Resultt=PEEK32(A)

  • A = address

USE

  • The function PEEK32() is used to know the content of memory addresses A, A+1, A+2 and A+3.

ERROR

  • If A is not a correct expression.

EXAMPLE

dim v%,address

address=adr(v%)

poke32 address,4*power(256,3)+3*power(256,2)+2*power(256,1)+power(256,0)

print peek(adr(v%))

print peek(adr(v%+1))

print peek(adr(v%+2))

print peek(adr(v%+3))

print "the print is:"

print 4

print 3

print 2

print 1

print "-----"

print peek32(address)

print "printed value is: "+str$(4*power(256,3)+3*power(256,2)+2*power(256,1)+power(256,0))

SEE ALSO

POKE

POKE16

POKE32

POKE_NORMAL

POKE_REVERSE

PEEK()

PEEK16()

PEEK_NORMAL

PEEK_REVERSE