bochs-writable-ROM-patch 606B

123456789101112131415
  1. --- memory/memory.cc 18 Oct 2008 18:10:14 -0000 1.71
  2. +++ memory/memory.cc 21 Oct 2008 19:47:07 -0000
  3. @@ -172,7 +172,11 @@
  4. break;
  5. case 0x0: // Writes to ROM, Inhibit
  6. - BX_DEBUG(("Write to ROM ignored: address 0x" FMT_PHY_ADDRX ", data %02x", a20addr, *data_ptr));
  7. + if ((a20addr & 0xfffe0000) == 0x000e0000) {
  8. + BX_DEBUG(("Write to ROM ignored: address 0x" FMT_PHY_ADDRX ", data %02x", a20addr, *data_ptr));
  9. + } else {
  10. + BX_MEM_THIS rom[(a20addr & EXROM_MASK) + BIOSROMSZ] = *data_ptr;
  11. + }
  12. break;
  13. default: