Previous 199869 Revisions Next

r33268 Sunday 2nd November, 2014 at 05:23:19 UTC by Felipe CorrĂȘa da Silva Sanches
G-LOC: Mapping portbits related to the moving cabinet limit switches.
[src/mame/drivers]segaybd.c

trunk/src/mame/drivers/segaybd.c
r241779r241780
118118//-------------------------------------------------
119119
120120IOPORT_ARRAY_MEMBER( segaybd_state::digital_ports )
121{ "P1", "GENERAL", "PORTC", "PORTD", "PORTE", "DSW", "COINAGE", "PORTH" };
121{ "P1", "GENERAL", "LIMITSW", "PORTD", "PORTE", "DSW", "COINAGE", "PORTH" };
122122
123123READ16_MEMBER( segaybd_state::io_chip_r )
124124{
r241779r241780
403403void segaybd_state::gforce2_output_cb1(UINT16 data)
404404{
405405   logerror("gforce2_output_cb1: '%02X'\n", data & 0xFF);
406   //bits 4, 5, and 7 seem to be used to multiplex the PORTC signals
406   //bits 4, 5, and 7 seem to be used to multiplex the "LIMITSW" port signals
407407   //The exact mapping of these signals is yet not perfectly understood.
408408   //You can observe how this value changes when switching pages in the
409409   //service mode motor test menu
r241779r241780
846846   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 )
847847   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 )
848848
849   PORT_START("PORTC")
849   PORT_START("LIMITSW")
850850   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
851851
852852   PORT_START("PORTD")
r241779r241780
885885   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Shoot")
886886   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Missile")
887887
888   PORT_MODIFY("PORTC")
888   PORT_MODIFY("LIMITSW")
889889   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Floor Switch")
890890   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Beam Sensor 2 / Down Limit") //The meaning of these portbits seems to be selected
891891   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Beam Sensor 1 / Up Limit")   // by the output value written to gforce2_output_cb1
r241779r241780
934934   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Vulcan")
935935   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Missile")
936936
937   PORT_MODIFY("LIMITSW")
938   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Right Upper Limit Switch")
939   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Right Lower Limit Switch")
940   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Left Upper Limit Switch")
941   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Left Lower Limit Switch")
942
937943   PORT_MODIFY("DSW")
938944   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SWB:1,2")
939945   PORT_DIPSETTING(    0x02, DEF_STR( Easy ) )


Previous 199869 Revisions Next


© 1997-2024 The MAME Team