OSDN Git Service

[VM][FMTOWNS] May PLACE MSDOS-ROM to b00000-bfffff.
authorK.Ohta <whatisthis.sowhat@gmail.com>
Mon, 27 Jan 2020 19:40:49 +0000 (04:40 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Mon, 27 Jan 2020 19:40:49 +0000 (04:40 +0900)
source/src/vm/fmtowns/msdosrom.cpp
source/src/vm/fmtowns/towns_memory.cpp

index cea1700..24b7387 100644 (file)
@@ -27,6 +27,8 @@ uint32_t MSDOSROM::read_memory_mapped_io8(uint32_t addr)
        uint8_t d = 0xff;
        if((addr >= 0xc2000000) && (addr < 0xc2080000)) {
                d = rom[addr & 0x7ffff];
+       } else if((addr >= 0x000b0000) && (addr < 0x000c0000)) {
+               d = rom[addr & 0x0ffff];
        }
        return (uint32_t)d;
 }
index 32974f6..ad52ccc 100644 (file)
@@ -24,6 +24,7 @@ void TOWNS_MEMORY::config_page00()
 {
        set_memory_rw          (0x00000000, 0x000bffff, ram_page0);
        if(dma_is_vram) {
+               set_memory_mapped_io_r (0x000b0000, 0x000bffff, d_msdos); // OK? <- for compatible ROM.
                set_memory_mapped_io_rw(0x000c0000, 0x000c7fff, d_vram);
                set_memory_mapped_io_rw(0x000c8000, 0x000cafff, d_sprite);
                set_memory_mapped_io_rw(0x000cb000, 0x000cbfff, d_font);