Category : C Source Code
Archive   : LH113SRC.ZIP
Filename : EXECUTE.C
Output of file : EXECUTE.C contained in archive : LH113SRC.ZIP
/* */
/* Name : execute (For Turbo C V1.5) */
/* */
/* Function: */
/* */
/* (int 2eh ) */
/* return : None */
/* Author : S.Takanami */
/* Date : 88/07/24 */
/* Update : 88/08/05 MS-DOS Ver2.11 */
/* */
/***************************************************************/
#include
void execute(char *parameter)
{
char buf[100];
int stk[100];
if ((buf[0] = strlen(parameter)) != 0) {
strcpy(&buf[1], parameter);
strcat(buf, "\r");
asm jmp short exe1
asm rss dw ?
asm rsp dw ?
asm res dw ?
asm rds dw ?
asm rdi dw ?
asm rsi dw ?
asm rbp dw ?
asm rdx dw ?
asm rcx dw ?
asm rbx dw ?
asm rax dw ?
exe1:
asm mov rss,ss
asm mov rsp,sp
asm mov res,es
asm mov rds,ds
asm mov rdi,di
asm mov rsi,si
asm mov rbp,bp
asm mov rdx,dx
asm mov rcx,cx
asm mov rbx,bx
asm mov rax,ax
asm lea si,buf
asm mov ax,ss
asm mov ds,ax
asm lea sp,stk
asm add sp,99*2
asm int 2eh
asm mov ax,rax
asm mov bx,rbx
asm mov cx,rcx
asm mov dx,rdx
asm mov bp,rbp
asm mov si,rsi
asm mov di,rdi
asm mov ds,rds
asm mov es,res
asm mov sp,rsp
asm mov ss,rss
}
}
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/