/*   prnputc.s  : printer library 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 _prnputc

/*
	(void) prnputc(unsigned char cdata) 
*/
	.align 4
_prnputc:
	movl  %edx,%eax
	movl  4(%esp),%dl
	pushl %eax
loop:
	movl  $0x0100,%eax
	int   $0x94
	and   %ah,%ah
	jnz   loop

	popl  %edx
	ret
