FT_OUTP

FT_OUTP()
 Write a byte to a specified I/O port
------------------------------------------------------------------------------

 Syntax

     FT_OUTP( <nPort>, <nValue> ) -> lResult

 Arguments

     <nPort> is the port from which to retrieve the byte.

     <nValue> is the value between 0 and 255 to write to the port.

 Returns

    .T. if all parameters were valid and the byte was written to
        the port.
    .F. if invalid parameters were passed.

 Description

    It may sometimes be useful to write a byte to a port without having
    to resort to C or assembler.  This function allows you to do so.

    The source code is written to adhere to Turbo Assembler's IDEAL mode.
    To use another assembler, you will need to rearrange the PROC and
    SEGMENT directives, and also the ENDP and ENDS directives (a very
    minor task).

 Examples

    lOk := FT_OUTP( 100, 0 )   // send a Chr(0) to port 100 (064h)

 Source: OUTP.ASM

 Author: Ted Means

See Also: FT_INP()

 

One response to “FT_OUTP

  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.