* added compilers lcc and bcc (linux86)
[mascara-docs.git] / compilers / linux86-0.16.17 / libc / bios / bios_min.c
blobef86c4a02b63eb47d3add529501629e744df832d
1 /* Copyright (C) 1996 Robert de Bath <robert@mayday.compulink.co.uk>
2 * This file is part of the Linux-8086 C library and is distributed
3 * under the GNU Library General Public License.
4 */
6 #ifdef __AS386_16__
7 #ifdef __STANDALONE__
9 #include <bios.h>
11 #ifdef L_bios_putc
12 bios_putc(c)
14 #asm
15 #if !__FIRST_ARG_IN_AX__
16 mov bx,sp
17 mov ax,[bx+2]
18 #endif
19 mov ah,#$0E
20 mov bx,#7
21 int $10
22 #endasm
24 #endif
26 /****************************************************************************/
28 #ifdef L_bios_getc
29 bios_getc()
31 #asm
32 xor ax,ax
33 int $16
34 #endasm
36 #endif
38 /****************************************************************************/
40 #ifdef L_bios_khit
41 bios_khit()
43 #asm
44 mov ah,#1
45 int $16
46 jz nokey
47 cmp ax,#0
48 jnz dort
49 mov ax,#3
50 dort:
51 ret
52 nokey:
53 xor ax,ax
54 #endasm
56 #endif
58 /****************************************************************************/
60 #endif
61 #endif