;
;		ish file converter for MS-DOS  Ver 2.00 (90/3/27)
;
;
;		Copyright (c) 1986, 1987, 1989, 1990  by  M. ishizuka
;		All rights reserved.
;



;-----------------------------------------------;
;						;
;	@@int21_2				;
;						;
;	INPUT :	dl (character)			;
;	OUTPUT:	flags (NC: ok)			;
;		      (CY: error)		;
;	ERROR :	NON				;
;	BREAK : flags				;
;						;
;-----------------------------------------------;

@@int21_2	macro
		call	int21_2
		endm



;-----------------------------------------------;
;						;
;	@@int21_8				;
;						;
;	INPUT :	NON				;
;	OUTPUT:	al (character)			;
;		flags (NC: ok)			;
;		      (CY: error)		;
;	ERROR : error_29			;
;	BREAK : flags, ah			;
;						;
;-----------------------------------------------;

@@int21_8	macro
		push	bx
		push	cx
		push	dx
		mov	ax, 4400h
		mov	bx, 2
		int	21h
		jc	error_29
		xor	dh, dh
		push	dx
		or	dl, 20h
		mov	ax, 4401h
		mov	bx, 2
		int	21h
		jc	error_29
		mov	ah, 3fh
		mov	bx, 2
		mov	cx, 1
		mov	dx, offset int21_8_work
		int	21h
		pop	dx
		mov	ax, 4401h
		mov	bx, 2
		int	21h
		jc	error_29
		mov	al, byte ptr int21_8_work
		pop	dx
		pop	cx
		pop	bx
		endm



;-----------------------------------------------;
;						;
;	@@int21_9				;
;						;
;	INPUT :	dx (pointer)			;
;	OUTPUT:	flags (NC: ok)			;
;		      (CY: error)		;
;	ERROR :	NON				;
;	BREAK : flags				;
;						;
;-----------------------------------------------;

@@int21_9	macro
		call	int21_9
		endm
