Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Nanforum Toolkit v2.1 Reference Guide - <b>ft_outp()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 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()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson