trunk/src/mess/drivers/pc9801.c
r241657 | r241658 | |
3349 | 3349 | { |
3350 | 3350 | address_space& space = m_maincpu->space(AS_PROGRAM); |
3351 | 3351 | membank("wram")->set_base(m_ram->pointer()); |
3352 | | space.install_read_bank(0x100000, 0x100000 + m_ram_size - 1, "ext_wram"); |
3353 | | space.install_write_bank(0x100000, 0x100000 + m_ram_size - 1, "ext_wram"); |
3354 | | membank("ext_wram")->set_base(m_ram->pointer() + 0xa0000); |
| 3352 | if(m_ram_size) |
| 3353 | { |
| 3354 | space.install_read_bank(0x100000, 0x100000 + m_ram_size - 1, "ext_wram"); |
| 3355 | space.install_write_bank(0x100000, 0x100000 + m_ram_size - 1, "ext_wram"); |
| 3356 | membank("ext_wram")->set_base(m_ram->pointer() + 0xa0000); |
| 3357 | } |
3355 | 3358 | } |
3356 | 3359 | |
3357 | 3360 | m_ide_rom = memregion("ide")->base(); |