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

 
Output of file : GETEA.ASM contained in archive : TCP_SRC.ZIP
;put into the public domain by Russell Nelson, [email protected]

ether_byte db ?,?,?,?

get_eaddr:
;enter with ds:si -> Ethernet address to parse, es:di -> place to put it.
mov cx,EADDR_LEN
get_eaddr_2:
push cx
push di
mov di,offset ether_byte
call get_hex
mov al,cl ;remember the number in al.
pop di
pop cx
jc get_eaddr_3 ;exit if no number at all.
stosb ;store a byte.
cmp byte ptr [si],':' ;skip colons between bytes.
jne get_eaddr_4
inc si
get_eaddr_4:
loop get_eaddr_2
clc
get_eaddr_3:
ret




  3 Responses to “Category : Network Files
Archive   : TCP_SRC.ZIP
Filename : GETEA.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/