/*   dgetc.s  : direct console getc for gcc on FM-TOWNS
 *
 * 		(C) Copyright    Makoto Sakai
 * 			 	    Nifty:    ムンパッパ (MHB02550)     
 *			 	    junet:    sakai@sra.co.jp
 *
 * Permission to use, copy, modify, and distribute this software and its
 * documentation for any purpose and without fee is hereby granted,
 * provided that the above copyright notice appear in all copies and that
 * both that copyright notice and this permission notice appear in
 * supporting documentation.
 */
	.data
	.text
	.globl _dgetc

/*
	dgetc() 
*/
	.align 4
_dgetc:
	push  %edx
loop:
	movb  $0x06,%ah
	movb  $0xff,%dl
	int   $0x21
	popl  %edx
	andl  $0xff,%eax
	ret
