Category : Miscellaneous Language Source Code
Archive   : HASH.ZIP
Filename : LIST.4
;HASH--Procedure to hash a four byte string
;
; Input: AX := first two bytes of string
; BX := second two bytes of string
;
; Output: AL := hash value (0-60)
;
; Registers destroyed: AX,BX
;---------------------------------------------
;
TAB_sz equ 61 ;define table size
hash proc near
push dx ;save DX
xor ax,bx ;combine into 16 bits
xor dx,dx ;clear DX-dividend in DX AX
mov bx,TAB_sz ;table size to BX
div bx ;divide-remainder is in DX
mov ax,dx ;remainder to AX
pop dx ;restore DX
ret
hash endp
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
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/