1
0
Fork 0

Use the new MCB class

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@615
This commit is contained in:
Sjoerd van der Berg 2002-12-31 13:27:38 +00:00
parent 080bcf28d4
commit 92858fee03

View file

@ -173,10 +173,10 @@ bool DOS_NewPSP(Bit16u segment, Bit16u size)
static void SetupPSP(Bit16u pspseg,Bit16u memsize,Bit16u envseg) {
/* Fix the PSP for psp and environment MCB's */
MCB * pspmcb=(MCB *)HostMake(pspseg-1,0);
pspmcb->psp_segment=pspseg;
MCB * envmcb=(MCB *)HostMake(envseg-1,0);
envmcb->psp_segment=pspseg;
DOS_MCB mcb((Bit16u)(pspseg-1));
mcb.SetPSPSeg(pspseg);
mcb.SetPt((Bit16u)(envseg-1));
mcb.SetPSPSeg(pspseg);
DOS_PSP psp(pspseg);
psp.MakeNew(memsize);