diff --git a/src/dos/dos_programs.cpp b/src/dos/dos_programs.cpp index 3d9056c9..bc38707c 100644 --- a/src/dos/dos_programs.cpp +++ b/src/dos/dos_programs.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2002-2007 The DOSBox Team + * Copyright (C) 2002-2008 The DOSBox Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: dos_programs.cpp,v 1.83 2008-03-02 11:13:46 qbix79 Exp $ */ +/* $Id: dos_programs.cpp,v 1.84 2008-03-09 20:32:22 c2woody Exp $ */ #include "dosbox.h" #include @@ -746,6 +746,8 @@ public: } } else { disable_umb_ems_xms(); + void RemoveEMSPageFrame(void); + RemoveEMSPageFrame(); WriteOut(MSG_Get("PROGRAM_BOOT_BOOT"), drive); for(i=0;i<512;i++) real_writeb(0, 0x7c00 + i, bootarea.rawdata[i]); diff --git a/src/hardware/memory.cpp b/src/hardware/memory.cpp index afe051d2..efdbe02f 100644 --- a/src/hardware/memory.cpp +++ b/src/hardware/memory.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2002-2007 The DOSBox Team + * Copyright (C) 2002-2008 The DOSBox Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: memory.cpp,v 1.53 2007-12-10 22:11:13 c2woody Exp $ */ +/* $Id: memory.cpp,v 1.54 2008-03-09 20:32:23 c2woody Exp $ */ #include "dosbox.h" #include "mem.h" @@ -519,6 +519,13 @@ static Bitu read_p92(Bitu port,Bitu iolen) { return memory.a20.controlport | (memory.a20.enabled ? 0x02 : 0); } +void RemoveEMSPageFrame(void) { + /* Setup rom at 0xe0000-0xf0000 */ + for (Bitu ct=0xe0;ct<0xf0;ct++) { + memory.phandlers[ct] = &rom_page_handler; + } +} + void PreparePCJRCartRom(void) { /* Setup rom at 0xd0000-0xe0000 */ for (Bitu ct=0xd0;ct<0xe0;ct++) {