Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>peekbyte()</b> http://www.X-Hacker.org [<<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()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson