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