Crappy games fix (int 2 revectoring as would stacks!=0,0) wd
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2102
This commit is contained in:
parent
31cbdda460
commit
bdd7b715d0
1 changed files with 7 additions and 3 deletions
|
@ -187,10 +187,14 @@ bool DOS_FreeMemory(Bit16u segment) {
|
|||
void DOS_SetupMemory(void) {
|
||||
// Create a dummy device MCB with PSPSeg=0x0008
|
||||
DOS_MCB mcb_devicedummy((Bit16u)MEM_START);
|
||||
mcb_devicedummy.SetPSPSeg(0x0008); // Devices
|
||||
mcb_devicedummy.SetPSPSeg(0x0008); // Devices
|
||||
mcb_devicedummy.SetSize(1);
|
||||
mcb_devicedummy.SetType(0x4d); // More blocks will follow
|
||||
|
||||
mcb_devicedummy.SetType(0x4d); // More blocks will follow
|
||||
|
||||
// BioMenace (segment of int2<0x8000)
|
||||
mem_writeb((MEM_START+1)<<4,0xcf);// iret
|
||||
RealSetVec(0x02,(MEM_START+1)<<16);
|
||||
|
||||
DOS_MCB mcb((Bit16u)MEM_START+2);
|
||||
mcb.SetPSPSeg(MCB_FREE); //Free
|
||||
if (machine==MCH_TANDY) {
|
||||
|
|
Loading…
Add table
Reference in a new issue