Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- GT_LIB v1.0 Reference Guide Release 1.0 - <b>return the contents of a byte in memory.</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Return the contents of a byte in memory.
------------------------------------------------------------------------------

 Syntax

        GT_PeekB(<nSegment>,<nOffset>) --> nByte

 Arguments:

      <nSegment> is the segment of the byte in memory.

      <nOffset> is the offset of the byte in memory.

 Returns:

      The numeric content of the specified byte in memory.

 Description:

      GT_PeekB() can be used for getting numeric byte values from
      specific locations in memory.

 Examples:

      // Check if Caps Lock is active.

      nKeyboard := GT_PeekB(0,1047)
      ? "Caps Lock is "+if(GT_And(nKeyboard,64) == 0,"Off","On")

 Source: PEEKBYTE.C

 Author:  David Pearson

See Also: GT_PEEKW()

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