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