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_inp()</b> http://www.X-Hacker.org [<<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()

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