FT_CHDIR() Change the current directory FT_DEFAULT() Retrieve and optionally change the current default drive FT_DOSVER() Return the current DOS major and minor version as a string FT_DSKFREE() Return the amount of available disk space FT_DSKSIZE() Return the maximum capacity of a fixed disk FT_FLOPTST() Test diskette drive status FT_HANDCNT() Count number of available DOS (not network) file handles FT_INP() Retrieve a byte from a specified I/O port FT_INT86() Execute a software interrupt FT_ISPRINT() Check printer status FT_ISSHARE() Determine if DOS "Share" is installed FT_MKDIR() Create a subdirectory FT_OUTP() Write a byte to a specified I/O port FT_PEEK() Retrieve a byte from a specified memory location. FT_POKE() Write a byte to a specified memory location FT_REBOOT() Force a warm or cold boot FT_RMDIR() Delete a subdirectory FT_SETDATE() Set the DOS system date FT_SETTIME() Set the DOS system time FT_SYSMEM() Determine the amount of conventional memory installed FT_TEMPFIL() Create a file with a unique name
Tag Archives: FT_INP
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()
FT_INP
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()