Setup rom areas
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1678
This commit is contained in:
parent
9d242404d5
commit
d348bcf043
1 changed files with 17 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue