1 /* $NetBSD: conio.S,v 1.5 2005/12/11 12:17:48 christos Exp $ */
4 originally from: FreeBSD:sys/i386/boot/netboot/start2.S
7 #include <machine/asm.h>
11 /**************************************************************************
13 **************************************************************************/
24 call _C_LABEL(prot_to_real) # enter real mode
31 movw $0x184f, %dx /* 80x25 */
40 calll _C_LABEL(real_to_prot) # back to protected mode
50 /**************************************************************************
51 PUTC - Print a character
52 **************************************************************************/
63 call _C_LABEL(prot_to_real) # enter real mode
71 calll _C_LABEL(real_to_prot) # back to protected mode
81 /**************************************************************************
82 GETC - Get a character
83 **************************************************************************/
91 call _C_LABEL(prot_to_real) # enter real mode
98 calll _C_LABEL(real_to_prot) # back to protected mode
110 /**************************************************************************
111 ISSHIFT - Check for keyboard interrupt; via shift key
112 **************************************************************************/
120 call _C_LABEL(prot_to_real) # enter real mode
129 calll _C_LABEL(real_to_prot) # back to protected mode
141 /**************************************************************************
142 ISKEY - Check for keyboard input
143 **************************************************************************/
151 call _C_LABEL(prot_to_real) # enter real mode
159 calll _C_LABEL(real_to_prot) # back to protected mode