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

 
Output of file : FILLSTR.ASM contained in archive : TASMSWAN.ZIP
%TITLE "External Turbo Pascal String-Filler function"

IDEAL
MODEL TPASCAL

CODESEG

PUBLIC FillString

%NEWPAGE
;------------------------------------------------------------------------
; FUNCTION FillString( n : Byte; ch : Char ) : String;
;------------------------------------------------------------------------
PROC FillString NEAR
ARG n:BYTE:2, c:BYTE:2 RETURNS string:dword

les di,[string]
mov al,[n]
cld
stosb
xor ch,ch
mov cl,al
mov al, [c]
jcxz @@99
repnz stosb
@@99:
ret
ENDP FillString

END


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