[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 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()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson