/* PRINTRE BIOS */

	.data
	.text

	.globl	_PRN_status
	.globl	_PRN_putc
	.globl	_PRN_puts
	.globl	_FNT_sjisToJis
/*
	int PRN_status()
*/
	.align	4

_PRN_status:
	xorw	%ax,%ax
	int	$0x94
	movw	%dx,%ax
	ret

/*
	int PRN_putc( char c )

	char c:出力する文字コード
*/
	.align	4

_PRN_putc:
	movw	$0x0100,%ax
	movb	4(%esp),%dl
	int	$0x94
	movsbl	%ah,%eax
	ret

/*
	int PRN_puts( char *s, unsigned int l )

	char *s :出力文字列のアドレス
	(u)int i:データの長さ
*/
	.align	4

_PRN_puts:
	movw	$0x0200,%ax
	pushw	%ds
	movw	12(%esp),%cx
	movl	8(%esp),%di
	int	$0x94
	movsbl	%ah,%eax
	popw	%ds
	ret

