File:  [RetroPC.NET] / np2 / np2tool / NP2TOOL.X86
Revision 1.1: download - view: text, annotated - select for diffs
Thu Jan 22 13:23:06 2004 JST (21 years, 9 months ago) by yui
Branches: MAIN
CVS tags: HEAD
add np2tool (T.Yui)



; in cld/ds=cs / ret z & bx
np2_check:		mov		ah, 0fh
				int		10h
				cmp		ah, 0fh
				mov		bx, offset _msg_pcat
				jne		short np2chk_err
				add		bx, 6
				mov		si, bx
				call	sendnp2port
				xchg	si, bx
checknp2port:	lodsb
				mov		cl, al
cnp2p_lp:		in		al, dx
				inc		si
				cmp		al, [si-1]
				loope	short cnp2p_lp
np2chk_err:		ret

sendnp2port:	mov		dx, NP2PORT
				xor		cx, cx
				lodsb
				mov		cl, al
				rep outsb
				ret

_msg_pcat		db	'PC/AT$'
				db	3, 'NP2'
				db	'Real PC-98x1$'


RetroPC.NET-CVS <cvs@retropc.net>