Previous 199869 Revisions Next

r29282 Friday 4th April, 2014 at 20:18:46 UTC by hap
added J1 jumper/solderpad, used to call the monitor on dev system
[src/mess/drivers]ng_aes.c

trunk/src/mess/drivers/ng_aes.c
r29281r29282
141141   DECLARE_READ16_MEMBER(aes_in1_r);
142142   DECLARE_READ16_MEMBER(aes_in2_r);
143143
144   DECLARE_INPUT_CHANGED_MEMBER(aes_j1);
145
144146   DECLARE_MACHINE_START(neocd);
145147   DECLARE_MACHINE_START(neogeo);
146148   DECLARE_MACHINE_RESET(neogeo);
r29281r29282
13131315INPUT_PORTS_END
13141316
13151317static INPUT_PORTS_START( aes )
1316   PORT_START("CTRLSEL") /* Select Controller Type */
1318   PORT_START("CTRLSEL") /* Select Controller Type */
13171319   PORT_CONFNAME( 0x0f, 0x01, "P1 Controller")
1318   PORT_CONFSETTING(  0x00, "Unconnected" )
1319   PORT_CONFSETTING(  0x01, "NeoGeo Controller" )
1320   PORT_CONFSETTING(  0x02, "NeoGeo Mahjong Panel" )
1320   PORT_CONFSETTING(    0x00, "Unconnected" )
1321   PORT_CONFSETTING(    0x01, "NeoGeo Controller" )
1322   PORT_CONFSETTING(    0x02, "NeoGeo Mahjong Panel" )
13211323   PORT_CONFNAME( 0xf0, 0x10, "P2 Controller")
1322   PORT_CONFSETTING(  0x00, "Unconnected" )
1323   PORT_CONFSETTING(  0x10, "NeoGeo Controller" )
1324   PORT_CONFSETTING(  0x20, "NeoGeo Mahjong Panel" )
1324   PORT_CONFSETTING(    0x00, "Unconnected" )
1325   PORT_CONFSETTING(    0x10, "NeoGeo Controller" )
1326   PORT_CONFSETTING(    0x20, "NeoGeo Mahjong Panel" )
13251327
13261328   PORT_INCLUDE( controller )
13271329
r29281r29282
13341336   PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_START ) PORT_PLAYER(2)
13351337   PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_SELECT ) PORT_PLAYER(2)
13361338   PORT_BIT( 0x7000, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(DEVICE_SELF, neogeo_state, get_memcard_status, NULL)
1337   PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* Hardware type (AES=0, MVS=1) Some games check this and show */
1338                                       /* a piracy warning screen if the hardware and BIOS don't match */
1339   PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* Hardware type (AES=0, MVS=1) Some games check this and show a piracy warning screen if the hardware and BIOS don't match */
13391340
13401341   PORT_START("AUDIO")
13411342   PORT_BIT( 0x0007, IP_ACTIVE_HIGH, IPT_UNUSED )  /* AES has no coin slots, it's a console */
13421343   PORT_BIT( 0x0018, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* what is this? Universe BIOS uses these bits to detect MVS or AES hardware */
13431344   PORT_BIT( 0x00e0, IP_ACTIVE_HIGH, IPT_UNUSED )  /* AES has no upd4990a */
1344   PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(DEVICE_SELF, neogeo_state,get_audio_result, NULL)
1345   PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(DEVICE_SELF, neogeo_state, get_audio_result, NULL)
1346
1347   PORT_START("JP") // J1 and J2 are jumpers or solderpads depending on AES board revision, intended for use on the Development BIOS
1348   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Short J1 (Debug Monitor)") PORT_CODE(KEYCODE_F1) PORT_CHANGED_MEMBER(DEVICE_SELF, ng_aes_state, aes_j1, 0)
1349//   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_OTHER ) // what is J2 for? somehow related to system reset, disable watchdog?
13451350INPUT_PORTS_END
13461351
1352INPUT_CHANGED_MEMBER(ng_aes_state::aes_j1)
1353{
1354   // Shorting J1 causes a 68000 /BERR (Bus Error). On Dev Bios, this pops up the debug monitor
1355   if (newval)
1356      m_maincpu->set_input_line(M68K_LINE_BUSERROR, HOLD_LINE);
1357}
13471358
1359
13481360static INPUT_PORTS_START( neocd )
13491361   PORT_INCLUDE( aes )
13501362

Previous 199869 Revisions Next


© 1997-2024 The MAME Team