FT_PEEK

FT_PEEK()
 Retrieve a byte from a specified memory location.
------------------------------------------------------------------------------

 Syntax

      FT_PEEK( <nSegment>, <nOffset> ) -> nValue

 Arguments

     <nSegment> is the segment of the desired memory address.

     <nOffset>  is the offset of the desired memory address.

 Returns

     <nValue> will be a value from 0 to 255 if all parameters were valid and
              the function was able to retrieve the desired byte.
     <nValue> will be -1 if invalid parameters were passed.

 Description

     Use this function if you have a need to examine a specific memory
     location.  The function will return the byte at the specified
     address as a numeric value.  If you need this value as a character,
     use the Chr() function to convert it.

     This function was written for version 5.1 of MicroSoft C.  You may
     have to modify the source code to use another compiler.

 Examples

     local nVMode := FT_PEEK( 0, 1097 )  // Get the current video mode

 Source: PEEK.C

 Author: Ted Means

 

One response to “FT_PEEK

  1. Pingback: FT DOS/BIOS | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.