Previous 199869 Revisions Next

r24598 Wednesday 31st July, 2013 at 13:13:59 UTC by David Haywood
fix sound banking, change flag to imperfect graphics instead, I wonder if palette / tilemaps are buffered.
[src/mame/drivers]3x3puzzl.c

trunk/src/mame/drivers/3x3puzzl.c
r24597r24598
134134
135135WRITE16_MEMBER(_3x3puzzle_state::gfx_ctrl_w)
136136{
137   // does this have registers to control when the actual tile/palette
138   // data is copied to a private buffer?
139
137140   // bit 5 (0x20) cleared when palette is written
138141   // bit 4 (0x10) screen width - 1: 512 pixels, 0: 320 pixels
139142   // 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?)
141145
146   //printf("%04x\n",data&0xc7);
147
142148   if ( BIT(data,4) )
143149   {
144150      machine().primary_screen->set_visible_area(0*8, 64*8-1, 0*8, 30*8-1);
r24597r24598
148154      machine().primary_screen->set_visible_area(0*8, 40*8-1, 0*8, 30*8-1);
149155   }
150156
151   if ( BIT(data, 1) != m_oki_bank )
157   if ( (data&0x06) != m_oki_bank )
152158   {
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);
155161   }
156162}
157163
r24597r24598
219225   PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
220226   PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNUSED )
221227   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNUSED )
222
228   
223229   PORT_START("SYS")
224230   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
225231   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
r24597r24598
477483
478484GAME( 1998, 3x3puzzl,  0,          _3x3puzzle,  _3x3puzzle,  driver_device, 0,       ROT0, "Ace Enterprise",      "3X3 Puzzle (Enterprise)", 0 ) // 1998. 5. 28
479485GAME( 1998, 3x3puzzla, 3x3puzzl,   _3x3puzzle,  _3x3puzzle,  driver_device, 0,       ROT0, "Ace Enterprise",      "3X3 Puzzle (Normal)", 0 ) // 1998. 5. 28
480GAME( 199?, casanova,  0,          _3x3puzzle,  casanova,    driver_device, 0,       ROT0, "<unknown>",           "Casanova", GAME_IMPERFECT_SOUND )
486GAME( 199?, casanova,  0,          _3x3puzzle,  casanova,    driver_device, 0,       ROT0, "<unknown>",           "Casanova", GAME_IMPERFECT_GRAPHICS )

Previous 199869 Revisions Next


© 1997-2024 The MAME Team