*************************************************************************
*printf2：stdoutにフォーマットデータを書き込む				*
*	int		printf2(format,...);				*
*	const char	*format;					*
*vprintf2：stdoutにフォーマットデータを書き込む				*
*	int		vprintf2(format,arg);				*
*	const char	*format;					*
*	va_list		arg;						*
*************************************************************************
* Copyright 1990 SHARP/Hudson	(1990/05/05)
* Arranged 1993 AIG-SOFT	(1993/04/24)

	xdef	_printf2
	xdef	_vprintf2

	xref	__iob
	xref	_fputc
	xref	__fmtout2

	include	stdio.mac

	.offset	4
format	ds.l	1
arg1	ds.l	1

	.text
_vprintf2:
	move.l	arg1(sp),-(sp)		. argment address
	bra	_print0
_printf2:
	pea	arg1(sp)		. argment address
_print0:
	move.l	format+4(sp),-(sp)	. format address
	pea	__iob+(SIZE_IOBUF*STDOUT)
*					. stream pointer address
	pea	_fputc			. output function
	jsr	__fmtout2		. formatter
	lea	16(sp),sp
	rts
