trunk/src/mess/machine/sns_sa1.c
| r23869 | r23870 | |
| 170 | 170 | } |
| 171 | 171 | |
| 172 | 172 | if ((offset & 0xc08000) == 0x008000) //$00-3f:8000-ffff |
| 173 | | return read_l(space, offset); |
| 173 | return read_l(space, (offset & 0x7fffff)); |
| 174 | 174 | |
| 175 | 175 | if ((offset & 0xc08000) == 0x808000) //$80-bf:8000-ffff |
| 176 | | return read_h(space, offset); |
| 176 | return read_h(space, (offset & 0x7fffff)); |
| 177 | 177 | |
| 178 | 178 | if ((offset & 0xc00000) == 0xc00000) //$c0-ff:0000-ffff |
| 179 | | return read_h(space, offset); |
| 179 | return read_h(space, (offset & 0x7fffff)); |
| 180 | 180 | |
| 181 | 181 | if ((offset & 0x40e000) == 0x006000) //$00-3f|80-bf:6000-7fff |
| 182 | 182 | return read_bwram(offset); |
| r23869 | r23870 | |
| 781 | 781 | return m_rom[rom_bank_map[bank] * 0x8000 + (offset & 0x7fff)]; |
| 782 | 782 | } |
| 783 | 783 | else if (offset < 0x500000) |
| 784 | | return m_rom[rom_bank_map[(m_bank_c_rom * 0x20) + (offset / 0x8000)] * 0x8000 + (offset & 0x7fff)]; |
| 784 | return m_rom[rom_bank_map[(m_bank_c_rom * 0x20) + ((offset - 0x400000) / 0x8000)] * 0x8000 + (offset & 0x7fff)]; |
| 785 | 785 | else if (offset < 0x600000) |
| 786 | | return m_rom[rom_bank_map[(m_bank_d_rom * 0x20) + (offset / 0x8000)] * 0x8000 + (offset & 0x7fff)]; |
| 786 | return m_rom[rom_bank_map[(m_bank_d_rom * 0x20) + ((offset - 0x500000) / 0x8000)] * 0x8000 + (offset & 0x7fff)]; |
| 787 | 787 | else if (offset < 0x700000) |
| 788 | | return m_rom[rom_bank_map[(m_bank_e_rom * 0x20) + (offset / 0x8000)] * 0x8000 + (offset & 0x7fff)]; |
| 788 | return m_rom[rom_bank_map[(m_bank_e_rom * 0x20) + ((offset - 0x600000) / 0x8000)] * 0x8000 + (offset & 0x7fff)]; |
| 789 | 789 | else |
| 790 | | return m_rom[rom_bank_map[(m_bank_f_rom * 0x20) + (offset / 0x8000)] * 0x8000 + (offset & 0x7fff)]; |
| 790 | return m_rom[rom_bank_map[(m_bank_f_rom * 0x20) + ((offset - 0x700000) / 0x8000)] * 0x8000 + (offset & 0x7fff)]; |
| 791 | 791 | } |
| 792 | 792 | |
| 793 | 793 | WRITE8_MEMBER(sns_sa1_device::write_l) |