Category : Assembly Language Source Code
Archive   : STDLIB_A.ZIP
Filename : EMPTYSET.ASM

 
Output of file : EMPTYSET.ASM contained in archive : STDLIB_A.ZIP
stdlib segment para public 'slcode'
assume cs:stdlib
;
extrn sl_malloc:far
;
; EmptySet- Clears an existing set's elements changing it to the empty
; set.
;
; ES:DI must point at set (first byte of desired set) upon
; entry.
;
;
public sl_EmptySet
;
sl_EmptySet proc far
push ds
push ax
push cx
pushf
push di
push si
;
mov ax, es
mov ds, ax
mov ah, [di] ;Get Mask byte.
not ah
add di, 8 ;Point at start of set
mov si, di
mov cx, 256
ClearSet: lodsb
and al, ah
stosb
loop ClearSet
;
pop si
pop di
popf
pop cx
pop ax
pop ds
clc
ret
;
sl_EmptySet endp
;
;
stdlib ends
end


  3 Responses to “Category : Assembly Language Source Code
Archive   : STDLIB_A.ZIP
Filename : EMPTYSET.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/