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