CT_PEEKBYTE

 PEEKBYTE()
 Reads a byte from memory
------------------------------------------------------------------------------
 Syntax

     PEEKBYTE(<nSegment|cHexSegment>,<nOffset|cHexOffset>)
         --> nByte

 Arguments

     <nSegment|cHexSegment>  Designates the segment address from which
     the byte is read.  This value can be a decimal integer or hexadecimal
     string.  The maximum is 65520 ("FFF0" Hex).

     <nOffset|cHexOffset>  Designates the offset address within the
     segment specified by <nSegment|cHexSegment>.  This value can be a
     decimal integer or hexadecimal string.  The maximum is 65535 ("FFFF"
     Hex).

 Returns

     PEEKBYTE() returns the byte to be read or a value of -1, if there is an
     error.

 Description

     PEEKBYTE() reads a byte from a desired memory region within conventional
     memory.  You must specify the segment address and offset.

 Examples

     .  Show a decimal parameter:

        ? PEEKBYTE(1000, 2000)       // Segment 1000d, Offset 2000d

     .  Show a hexadecimal parameter:

        ? PEEKBYTE("F000", "8000")   // The byte at address F800h

See Also: PEEKWORD() POKEBYTE()

 

Tools – PEEK/POKE Functions

Introduction PEEK/POKE Functions
INBYTE()   Reads an 8 byte from a port
INWORD()   Reads in a 16-bit word from a port
OUTBYTE()  Sends a byte to a port
OUTWORD()  Sends a 16-bit word to a port
PEEKBYTE() Reads a byte from memory
PEEKSTR()  Reads a byte sequence from memory
PEEKWORD() Reads a 16-bit word from memory
POKEBYTE() Writes a byte to memory
POKEWORD() Writes a 16-bit word to memory