mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
00660: zoar: The cabinet UPRIGHT dipswitch is not working. [stephh]
This commit is contained in:
parent
70c05ee5b2
commit
d75d626a43
@ -770,9 +770,11 @@ static INPUT_PORTS_START( zoar )
|
|||||||
PORT_DIPNAME( 0x40, 0x00, "Control Panel" ) PORT_DIPLOCATION("SW1:7")
|
PORT_DIPNAME( 0x40, 0x00, "Control Panel" ) PORT_DIPLOCATION("SW1:7")
|
||||||
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
|
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
|
||||||
PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) )
|
PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) )
|
||||||
PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:8")
|
// PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:8")
|
||||||
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
|
// PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
|
||||||
PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) )
|
// PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) )
|
||||||
|
/* I can't use IPT_VBLANK as players would have almost no time to enter their initials */
|
||||||
|
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL )
|
||||||
|
|
||||||
PORT_START("DSW2")
|
PORT_START("DSW2")
|
||||||
PORT_DIPNAME( 0x01, 0x01, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:1")
|
PORT_DIPNAME( 0x01, 0x01, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:1")
|
||||||
|
@ -250,19 +250,6 @@ WRITE8_HANDLER( bnj_scroll2_w )
|
|||||||
state->bnj_scroll2 = data;
|
state->bnj_scroll2 = data;
|
||||||
}
|
}
|
||||||
|
|
||||||
WRITE8_HANDLER( zoar_video_control_w )
|
|
||||||
{
|
|
||||||
btime_state *state = (btime_state *)space->machine->driver_data;
|
|
||||||
// Zoar video control
|
|
||||||
//
|
|
||||||
// Bit 0-2 = Unknown (always 0). Marked as MCOL on schematics
|
|
||||||
// Bit 3-4 = Palette
|
|
||||||
// Bit 7 = Flip Screen
|
|
||||||
|
|
||||||
state->btime_palette = (data & 0x30) >> 3;
|
|
||||||
flip_screen_set(space->machine, data & 0x80);
|
|
||||||
}
|
|
||||||
|
|
||||||
WRITE8_HANDLER( btime_video_control_w )
|
WRITE8_HANDLER( btime_video_control_w )
|
||||||
{
|
{
|
||||||
// Btime video control
|
// Btime video control
|
||||||
@ -289,6 +276,21 @@ WRITE8_HANDLER( bnj_video_control_w )
|
|||||||
btime_video_control_w(space, offset, data);
|
btime_video_control_w(space, offset, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WRITE8_HANDLER( zoar_video_control_w )
|
||||||
|
{
|
||||||
|
btime_state *state = (btime_state *)space->machine->driver_data;
|
||||||
|
// Zoar video control
|
||||||
|
//
|
||||||
|
// Bit 0-2 = Unknown (always 0). Marked as MCOL on schematics
|
||||||
|
// Bit 3-4 = Palette
|
||||||
|
// Bit 7 = Flip Screen
|
||||||
|
|
||||||
|
state->btime_palette = (data & 0x30) >> 3;
|
||||||
|
|
||||||
|
if (input_port_read(space->machine, "DSW1") & 0x40) /* cocktail mode */
|
||||||
|
flip_screen_set(space->machine, data & 0x80);
|
||||||
|
}
|
||||||
|
|
||||||
WRITE8_HANDLER( disco_video_control_w )
|
WRITE8_HANDLER( disco_video_control_w )
|
||||||
{
|
{
|
||||||
btime_state *state = (btime_state *)space->machine->driver_data;
|
btime_state *state = (btime_state *)space->machine->driver_data;
|
||||||
|
Loading…
Reference in New Issue
Block a user