make rom out of ems pageframe segment when BOOTing a disk
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3118
This commit is contained in:
parent
cf48084cea
commit
cd68884361
2 changed files with 13 additions and 4 deletions
|
@ -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 <stdlib.h>
|
||||
|
@ -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]);
|
||||
|
||||
|
|
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue