home *** CD-ROM | disk | FTP | other *** search
- /*---------------------------------------------------------------------------
- * filename - bioscom.cas
- *
- * function(s)
- * bioscom - communications I/O
- *--------------------------------------------------------------------------*/
-
- /*[]------------------------------------------------------------[]*/
- /*| |*/
- /*| Turbo C Run Time Library - Version 3.0 |*/
- /*| |*/
- /*| |*/
- /*| Copyright (c) 1987,1988,1990 by Borland International |*/
- /*| All Rights Reserved. |*/
- /*| |*/
- /*[]------------------------------------------------------------[]*/
-
-
- #pragma inline
- #include <bios.h>
-
- /*--------------------------------------------------------------------------*
-
- Name bioscom - communications I/O
-
- Usage int bioscom(int cmd, char byte, int port);
-
- Prototype in bios.h
-
- Description direct interface to BIOS interrupt 0x14
-
- Return value value return to the AX register for the function specified
- by cmd.
-
- *---------------------------------------------------------------------------*/
- int bioscom(int cmd, char byte, int port)
- {
- asm mov ah, cmd
- asm mov al, byte
- asm mov dx, port
- asm int 14h
-
- return( _AX );
- }
-