Category : Network Files
Archive   : PKTD11A.ZIP
Filename : DIGOUT.ASM

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

public dwordout, wordout, byteout, digout
dwordout:
mov cl,'0' ;prepare to eliminate leading zeroes.
xchg ax,dx ;just output 32 bits in hex.
call wordout ;output dx.
xchg ax,dx
wordout:
push ax
mov al,ah
call byteout
pop ax
byteout:
mov ah,al
shr al,1
shr al,1
shr al,1
shr al,1
call digout
mov al,ah
digout:
and al,0fh
add al,90h ;binary digit to ascii hex digit.
daa
adc al,40h
daa
cmp al,cl ;leading zero?
je digout_1
mov cl,-1 ;no more leading zeros.
jmp chrout
digout_1:
ret


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