Category : Assembly Language Source Code
Archive   : RHSTDLIB.ZIP
Filename : STRSET.ASM

 
Output of file : STRSET.ASM contained in archive : RHSTDLIB.ZIP
stdlib segment para public 'slcode'
assume cs:stdlib
;
;
; strset- Copies the character in al over the top of each character in the
; string the es:si points at. Does not affect the trailing zero
; byte in the string.
;
; inputs:
;
; AL- Character to copy.
; ES:DI- Points at string to overwrite.
;
;
;
;
public sl_strset
;
sl_strset proc far
pushf
push di
push ax
;
cld
mov ah, 0 ;Zero terminating byte
jmp short StartLp
;
SetLp: stosb ;Store next char
StartLp: cmp ah, es:[di] ;End of string?
jnz SetLp
;
pop ax
pop di
popf
ret
sl_strset endp
;
;
;
;
stdlib ends
end


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