Category : BASIC Source Code
Archive   : LINKBAS.ZIP
Filename : SETCMD.ASM
Output of file : SETCMD.ASM contained in archive : LINKBAS.ZIP
.CODE
SetCmd:
PROC USES di si,arg:Ptr
mov ah, 62h ;Call DOS for
int 21h ; PSP address
mov es, bx ;es=PSP
mov di, 80h ;di=cmd ofs
mov bx, arg ;bx=argument
mov cx, [bx] ;Limit length
and cx, 127 ; to 127
mov si, 2[bx] ;si=source
cld ;Forward copy
mov al, cl ;Set string
stosb ; length
rep movsb ;Copy string
mov al, 0dh ;al=ASCII cr
stosb ;Store in str
ret ;Return
SetCmd ENDP ;End SetCmd
END ;End of text
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/