trunk/src/mame/drivers/3x3puzzl.c
| r24597 | r24598 | |
| 134 | 134 | |
| 135 | 135 | WRITE16_MEMBER(_3x3puzzle_state::gfx_ctrl_w) |
| 136 | 136 | { |
| 137 | // does this have registers to control when the actual tile/palette |
| 138 | // data is copied to a private buffer? |
| 139 | |
| 137 | 140 | // bit 5 (0x20) cleared when palette is written |
| 138 | 141 | // bit 4 (0x10) screen width - 1: 512 pixels, 0: 320 pixels |
| 139 | 142 | // bit 3 (0x08) is set when tilemap scroll registers are written |
| 140 | | // bit 1 (0x02) OKI banking |
| 143 | // bit 1,2(0x06) OKI banking |
| 144 | // bit 0 (0x01) set in Casanova intro (could be OKI bank instead of bit 2?) |
| 141 | 145 | |
| 146 | //printf("%04x\n",data&0xc7); |
| 147 | |
| 142 | 148 | if ( BIT(data,4) ) |
| 143 | 149 | { |
| 144 | 150 | machine().primary_screen->set_visible_area(0*8, 64*8-1, 0*8, 30*8-1); |
| r24597 | r24598 | |
| 148 | 154 | machine().primary_screen->set_visible_area(0*8, 40*8-1, 0*8, 30*8-1); |
| 149 | 155 | } |
| 150 | 156 | |
| 151 | | if ( BIT(data, 1) != m_oki_bank ) |
| 157 | if ( (data&0x06) != m_oki_bank ) |
| 152 | 158 | { |
| 153 | | m_oki_bank = BIT(data,1); |
| 154 | | m_oki->set_bank_base(m_oki_bank * 0x40000); |
| 159 | m_oki_bank = data &0x6; |
| 160 | m_oki->set_bank_base((m_oki_bank>>1) * 0x40000); |
| 155 | 161 | } |
| 156 | 162 | } |
| 157 | 163 | |
| r24597 | r24598 | |
| 219 | 225 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 220 | 226 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 221 | 227 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 222 | | |
| 228 | |
| 223 | 229 | PORT_START("SYS") |
| 224 | 230 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 225 | 231 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r24597 | r24598 | |
| 477 | 483 | |
| 478 | 484 | GAME( 1998, 3x3puzzl, 0, _3x3puzzle, _3x3puzzle, driver_device, 0, ROT0, "Ace Enterprise", "3X3 Puzzle (Enterprise)", 0 ) // 1998. 5. 28 |
| 479 | 485 | GAME( 1998, 3x3puzzla, 3x3puzzl, _3x3puzzle, _3x3puzzle, driver_device, 0, ROT0, "Ace Enterprise", "3X3 Puzzle (Normal)", 0 ) // 1998. 5. 28 |
| 480 | | GAME( 199?, casanova, 0, _3x3puzzle, casanova, driver_device, 0, ROT0, "<unknown>", "Casanova", GAME_IMPERFECT_SOUND ) |
| 486 | GAME( 199?, casanova, 0, _3x3puzzle, casanova, driver_device, 0, ROT0, "<unknown>", "Casanova", GAME_IMPERFECT_GRAPHICS ) |