diff --git a/src/shell/shell.cpp b/src/shell/shell.cpp index 241e1a5a..acbb79a3 100644 --- a/src/shell/shell.cpp +++ b/src/shell/shell.cpp @@ -19,6 +19,7 @@ #include #include + #include "shell_inc.h" Bitu call_shellstop; @@ -139,6 +140,9 @@ void SHELL_Init() { /* Now call up the shell for the first time */ Bit16u psp_seg=DOS_GetMemory(16); Bit16u env_seg=DOS_GetMemory(1+(4096/16)); + Bit16u stack_seg=DOS_GetMemory(2048/16); + SetSegment_16(ss,stack_seg); + reg_sp=2046; /* Setup a fake MCB for the environment */ MCB * env_mcb=(MCB *)real_host(env_seg,0); env_mcb->psp_segment=psp_seg;