--- np2/np2tool/NP2TOOL.X86 2004/01/31 20:05:23 1.2 +++ np2/np2tool/NP2TOOL.X86 2004/06/10 04:49:48 1.3 @@ -1,34 +1,29 @@ - ; 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 bx, _msg_pcat + jne short np2check_err + add bx, byte 6 mov si, bx call sendnp2port xchg si, bx checknp2port: lodsb mov cl, al -cnp2p_lp: in al, dx +.lp: in al, dx inc si cmp al, [si-1] - loope short cnp2p_lp -np2chk_err: ret + loope .lp +np2check_err: ret sendnp2port: mov dx, NP2PORT xor cx, cx lodsb mov cl, al - if 1 -@@: lodsb +.lp: lodsb out dx, al - loop short @b - else - rep outsb - endif + loop .lp ret _msg_pcat db 'PC/AT$'