Category : Assembly Language Source Code
Archive   : RHSTDLIB.ZIP
Filename : RMVSTR.ASM
assume cs:stdlib
;
;
; RmvStr- Subtracts the characters in a string from a set.
;
; inputs:
;
; ES:DI- Points at the set (at its mask byte).
; DX:SI- Points at the string.
;
;
;
public sl_RmvStr
;
sl_RmvStr proc far
push ds
push ax
push bx
push si
push di
mov ds, dx
;
mov al, es:[di] ;Get mask byte
not al
add di, 8 ;Skip to start of set
mov bh, 0
jmp IntoLp
RmvLp: and es:[di][bx], al ;Add to set
inc si ;Move on to next char.
IntoLp: mov bl, [si]
cmp bl, 0
jnz RmvLp
;
pop di
pop si
pop bx
pop ax
pop ds
ret
sl_RmvStr endp
;
;
stdlib ends
end
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/