Category : Assembly Language Source Code
Archive   : TASMSWAN.ZIP
Filename : CFILL.ASM

 
Output of file : CFILL.ASM contained in archive : TASMSWAN.ZIP
%TITLE "Fill C Strings--External module demo"

IDEAL
MODEL small

CODESEG

PUBLIC _fillstring

%NEWPAGE
;-----------------------------------------------------------------------------
; void fillstring(unsigned char far * thestring, int strlength, char fillchar)
;-----------------------------------------------------------------------------
PROC _fillstring NEAR
ARG thestring:Dword, stringlength:Word, fillchar:Byte

push bp
mov bp,sp
mov cx,[stringlength]
jcxz @@99
push di
les di,[thestring]
mov al, [fillchar]
repnz stosb
pop di
@@99:
pop bp
ret
ENDP _fillstring

END


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