trunk/src/mess/drivers/prestige.c
| r31603 | r31604 | |
| 91 | 91 | : driver_device(mconfig, type, tag), |
| 92 | 92 | m_maincpu(*this, "maincpu"), |
| 93 | 93 | m_ram(*this, RAM_TAG), |
| 94 | m_cart(*this, "cart"), |
| 94 | 95 | m_keyboard(*this, "KEY"), |
| 95 | 96 | m_bank1(*this, "bank1"), |
| 96 | 97 | m_bank2(*this, "bank2"), |
| r31603 | r31604 | |
| 101 | 102 | |
| 102 | 103 | required_device<cpu_device> m_maincpu; |
| 103 | 104 | required_device<ram_device> m_ram; |
| 105 | required_device<cartslot_image_device> m_cart; |
| 104 | 106 | required_ioport_array<16> m_keyboard; |
| 105 | 107 | required_memory_bank m_bank1; |
| 106 | 108 | required_memory_bank m_bank2; |
| r31603 | r31604 | |
| 159 | 161 | break; |
| 160 | 162 | |
| 161 | 163 | case 1: |
| 162 | | if (!(m_bank[5] & 0x01) && (m_bank[5] & 0x02)) |
| 164 | if (!(m_bank[5] & 0x01) && (m_bank[5] & 0x02) && m_cart->exists()) |
| 163 | 165 | m_bank2->set_entry(0x40 + (data & 0x1f)); |
| 164 | 166 | else |
| 165 | 167 | m_bank2->set_entry(data & 0x3f); |
| 166 | 168 | break; |
| 167 | 169 | |
| 168 | 170 | case 2: |
| 169 | | if (!(m_bank[5] & 0x01) && (m_bank[5] & 0x04)) |
| 171 | if (!(m_bank[5] & 0x01) && (m_bank[5] & 0x04) && m_cart->exists()) |
| 170 | 172 | m_bank3->set_entry(0x40 + (data & 0x1f)); |
| 171 | 173 | else |
| 172 | 174 | m_bank3->set_entry(data & 0x3f); |