[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FT_INP()
 Retrieve a byte from a specified I/O port
------------------------------------------------------------------------------

 Syntax

      FT_INP( <nPort> ) -> nValue

 Arguments

    <nPort> is the port from which to retrieve the byte.  If it is
    invalid in any way, the function will return zero.

 Returns

    The byte retrieved.

 Description

    It may sometimes be useful to read a byte from 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

    byte := FT_INP( 100 )   // read a byte from port 100 (064h)

 Source: INP.ASM

 Author: Ted Means

See Also: FT_OUTP()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson