Shell now has a stack when it first starts
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@148
This commit is contained in:
parent
537de8d0f6
commit
92ea87eef6
1 changed files with 4 additions and 0 deletions
|
@ -19,6 +19,7 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#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;
|
||||
|
|
Loading…
Add table
Reference in a new issue