1
0
Fork 0

Setup rom areas

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1678
This commit is contained in:
Sjoerd van der Berg 2004-02-12 21:38:35 +00:00
parent 9d242404d5
commit d348bcf043

View file

@ -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