From d348bcf043667e9068e3cb03f2f982f87bd500f7 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Thu, 12 Feb 2004 21:38:35 +0000 Subject: [PATCH] Setup rom areas Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1678 --- src/hardware/memory.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/hardware/memory.cpp b/src/hardware/memory.cpp index dddeb8c4..03045ebe 100644 --- a/src/hardware/memory.cpp +++ b/src/hardware/memory.cpp @@ -102,6 +102,15 @@ public: ROMPageHandler() { flags=PFLAG_READABLE|PFLAG_HASROM; } + void writeb(PhysPt addr,Bitu val){ + LOG_MSG("Write %x to rom at %x",val,addr); + } + void writew(PhysPt addr,Bitu val){ + LOG_MSG("Write %x to rom at %x",val,addr); + } + void writed(PhysPt addr,Bitu val){ + LOG_MSG("Write %x to rom at %x",val,addr); + } }; class LFBPageHandler : public RAMPageHandler { @@ -569,6 +578,14 @@ void MEM_Init(Section * sec) { memory.phandlers[i]=&ram_page_handler; memory.mhandles[i]=0; //Set to 0 for memory allocation } + /* Setup rom at 0xc0000-0xc8000 */ + for (i=0xc0;i<0xc8;i++) { + memory.phandlers[i]=&rom_page_handler; + } + /* Setup rom at 0xf0000-0x0x100000 */ + for (i=0xf0;i<0x100;i++) { + memory.phandlers[i]=&rom_page_handler; + } /* Reset some links */ memory.links.used=0; // A20 Line - PS/2 system control port A