1
0
Fork 0

add PCJr-compatible dos memory layout

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2400
This commit is contained in:
Sebastian Strohhäcker 2005-12-03 10:43:22 +00:00
parent ed1cadea92
commit de579c6a89
4 changed files with 54 additions and 10 deletions

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: memory.cpp,v 1.39 2005-07-31 13:59:02 qbix79 Exp $ */
/* $Id: memory.cpp,v 1.40 2005-12-03 10:43:22 c2woody Exp $ */
#include "dosbox.h"
#include "mem.h"
@ -507,10 +507,16 @@ public:
for (i=0xc0;i<0xc8;i++) {
memory.phandlers[i] = &rom_page_handler;
}
/* Setup rom at 0xf0000-0x0x100000 */
/* Setup rom at 0xf0000-0x100000 */
for (i=0xf0;i<0x100;i++) {
memory.phandlers[i] = &rom_page_handler;
}
if (machine==MCH_PCJR) {
/* Setup cartridge rom at 0xe0000-0xf0000 */
for (i=0xe0;i<0xf0;i++) {
memory.phandlers[i] = &rom_page_handler;
}
}
/* Reset some links */
memory.links.used = 0;
// A20 Line - PS/2 system control port A