FT_POKE

FT_POKE()
 Write a byte to a specified memory location

 Syntax

      FT_POKE( <nSegment>, <nOffset>, <nValue> ) -> lResult

 Arguments

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

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

     <nValue>   is the value to write to the desired memory address.

 Returns

     <lResult> will be .T. if all parameters were valid and the function was
               able to write the desired byte.
     <lResult> will be .F. if invalid parameters were passed.

 Description

     Use this function if you have a need to change the value at a specific
     memory location.  The function will write the specified byte to the
     specified address.  The value must be passed as a numeric; if the byte
     you wish to use is stored as a character, use the Asc() 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

     FT_POKE( 0, 1047, 64)  // Turn CapsLock on

 Source: POKE.C

 Author: Ted Means

 

One response to “FT_POKE

  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.