Category : Network Files
Archive   : TCP_SRC.ZIP
Filename : VERIFYPI.ASM

 
Output of file : VERIFYPI.ASM contained in archive : TCP_SRC.ZIP
signature db 'PKT DRVR',0
signature_len equ $-signature

packet_int_msg db CR,LF
db "Error: should be in the range 0x60 to 0x80"
db '$'

verify_packet_int:
;enter with no special registers.
;exit with cy,dx-> error message if the packet int was bad,
; or nc,zr,es:bx -> current interrupt if there is a packet driver there.
; or nc,nz,es:bx -> current interrupt if there is no packet driver there.
cmp packet_int_no,60h ;make sure that the packet interrupt
jb verify_packet_int_bad ; number is in range.
cmp packet_int_no,80h
jbe verify_packet_int_ok
verify_packet_int_bad:
mov dx,offset packet_int_msg
stc
ret
verify_packet_int_ok:

mov ah,35h ;get their packet interrupt.
mov al,packet_int_no
int 21h

lea di,3[bx] ;see if there is already a signature
mov si,offset signature ; there.
mov cx,signature_len
repe cmpsb
clc
ret


  3 Responses to “Category : Network Files
Archive   : TCP_SRC.ZIP
Filename : VERIFYPI.ASM

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/