File:  [RetroPC.NET] / np2 / np2tool / NP2TOOL.X86
Revision 1.3: download - view: text, annotated - select for diffs
Thu Jun 10 13:49:48 2004 JST (21 years, 4 months ago) by yui
Branches: MAIN
CVS tags: VER_0_82_x64, VER_0_82, VER_0_81A, VER_0_81, VER_0_80, VER_0_79, VER_0_78, HEAD
update np2tools (T.Yui)


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

sendnp2port:	mov		dx, NP2PORT
				xor		cx, cx
				lodsb
				mov		cl, al
.lp:			lodsb
				out		dx, al
				loop	.lp
				ret

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


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