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 word in memory.</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Return the contents of a word in memory.
------------------------------------------------------------------------------

 Syntax

        GT_PeekW(<nSegment>,<nOffset>) --> nWord

 Arguments:

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

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

 Returns:

      The numeric content of the specified word in memory.

 Description:

      GT_PeekW() can be used for getting numeric word values from
      specific locations in memory.

 Examples:

      // Check if this machine as a floppy drive.

      nEquipment := GT_PeekW(64,16)
      if GT_And(nEquipment,1) != 0
         ? "Machine has a floppy drive."
      else
         ? "Machine does not have a floppy drive."
      endif

 Source: PEEKWORD.C

 Author:  David Pearson

See Also: GT_PEEKB()

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