From 4f8fb4b2af649f3bb7b3224a76030f685742d845 Mon Sep 17 00:00:00 2001 From: smf- Date: Sat, 22 Feb 2025 07:07:58 +0000 Subject: [PATCH] simplified mawasunda inputs ports [smf] --- src/devices/machine/atahle.cpp | 18 +++++++++--------- src/mame/sony/taitogn.cpp | 17 +++-------------- src/mame/sony/zn.cpp | 22 +++++++++++----------- 3 files changed, 23 insertions(+), 34 deletions(-) diff --git a/src/devices/machine/atahle.cpp b/src/devices/machine/atahle.cpp index 61f5b88a15d..3940d3b47d9 100644 --- a/src/devices/machine/atahle.cpp +++ b/src/devices/machine/atahle.cpp @@ -668,16 +668,16 @@ uint16_t ata_hle_device_base::control_r(offs_t offset) /* - bit description + bit description - 0 master active - 1 slave active - 2 complement of active disk head bit 0 - 3 complement of active disk head bit 1 - 4 complement of active disk head bit 2 - 5 complement of active disk head bit 3 - 6 write in progress - 7 floppy present (unused) + 0 master active + 1 slave active + 2 complement of active disk head bit 0 + 3 complement of active disk head bit 1 + 4 complement of active disk head bit 2 + 5 complement of active disk head bit 3 + 6 write in progress + 7 floppy present (unused) */ diff --git a/src/mame/sony/taitogn.cpp b/src/mame/sony/taitogn.cpp index d9c0f76e55f..f022cf346a3 100644 --- a/src/mame/sony/taitogn.cpp +++ b/src/mame/sony/taitogn.cpp @@ -1009,21 +1009,10 @@ static INPUT_PORTS_START(mawasunda) PORT_INCLUDE(taitogn) PORT_MODIFY("P1") - PORT_BIT(0x1f, IP_ACTIVE_LOW, IPT_UNUSED) // debug - PORT_BIT(0xe0, IP_ACTIVE_LOW, IPT_UNUSED) + PORT_BIT(0x7f, IP_ACTIVE_LOW, IPT_UNUSED) // P1 UP/P1 DOWN/P1 LEFT/P1 RIGHT/P1 BUTTON1/P1 BUTTON2/P1 BUTTON3 PORT_MODIFY("P2") - PORT_BIT(0x1f, IP_ACTIVE_LOW, IPT_UNUSED) // debug - PORT_BIT(0xe0, IP_ACTIVE_LOW, IPT_UNUSED) - - PORT_MODIFY("P3") - PORT_BIT(0xff, IP_ACTIVE_LOW, IPT_UNUSED) - - PORT_MODIFY("P4") - PORT_BIT(0xff, IP_ACTIVE_LOW, IPT_UNUSED) - - PORT_MODIFY("SYSTEM") - PORT_BIT(0xcc, IP_ACTIVE_LOW, IPT_UNUSED) // START3/START4/COIN3/COIN4 + PORT_BIT(0x7f, IP_ACTIVE_LOW, IPT_UNUSED) // P2 UP/P2 DOWN/P2 LEFT/P2 RIGHT/P2 BUTTON1/P2 BUTTON2/P2 BUTTON3 PORT_START("HANDLE1") PORT_BIT(0xff, 0x80, IPT_AD_STICK_X) PORT_MINMAX(0x01, 0xff) PORT_SENSITIVITY(100) PORT_KEYDELTA(16) PORT_CENTERDELTA(32) PORT_NAME("%p Handle") @@ -1424,7 +1413,7 @@ GAME( 2002, shangtou, coh3002t, coh3002t_t1, taitogn, taitogn_state, em // Takumi GAME( 2001, nightrai, coh3002t, coh3002t_t1, taitogn, ttgncl4_state, empty_init, ROT0, "Takumi", "Night Raid (V2.03J 2001/02/26 17:00)", MACHINE_SUPPORTS_SAVE ) -GAME( 2001, otenki, coh3002t, coh3002t_t1, taitogn, ttgncl4_state, empty_init, ROT0, "Takumi", "Otenki Kororin (V2.01J 2001/07/02 1 0:00)", MACHINE_SUPPORTS_SAVE ) +GAME( 2001, otenki, coh3002t, coh3002t_t1, taitogn, ttgncl4_state, empty_init, ROT0, "Takumi", "Otenki Kororin (V2.01J 2001/07/02 10:00)", MACHINE_SUPPORTS_SAVE ) // Triangle Service GAME( 2002, xiistag, coh3002t, coh3002t_t1, taitogn, taitogn_state, empty_init, ROT270, "Triangle Service", "XII Stag (V2.01J 2002/6/26 22:27)", MACHINE_SUPPORTS_SAVE ) diff --git a/src/mame/sony/zn.cpp b/src/mame/sony/zn.cpp index 3b605c1c580..bba7059f630 100644 --- a/src/mame/sony/zn.cpp +++ b/src/mame/sony/zn.cpp @@ -3111,7 +3111,7 @@ static INPUT_PORTS_START(aerofgts) PORT_DIPSETTING(0x00, DEF_STR(No)) // NG INPUT_PORTS_END -static INPUT_PORTS_START( bam2 ) +static INPUT_PORTS_START(bam2) PORT_INCLUDE(zn2p) PORT_MODIFY("P1") @@ -3148,15 +3148,15 @@ static INPUT_PORTS_START( bam2 ) PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_SERVICE2) PORT_CONDITION("DSW", 0x01, EQUALS, 0x00) // START2 PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_START2) PORT_CONDITION("DSW", 0x01, EQUALS, 0x01) // START2 - PORT_MODIFY("DSW") - PORT_DIPNAME( 0x01, 0x00, "Cabinet Type" ) PORT_DIPLOCATION("S551:1") - PORT_DIPSETTING( 0x01, "Generic Cab" ) - PORT_DIPSETTING( 0x00, "Dedicated Cab" ) - PORT_DIPNAME(0x0c, 0x0c, "Region") - PORT_DIPSETTING(0x00, "English") - PORT_DIPSETTING(0x04, "Japanese (2)") - PORT_DIPSETTING(0x08, "Korean") - PORT_DIPSETTING(0x0c, "Japanese") + PORT_MODIFY("DSW") + PORT_DIPNAME(0x01, 0x00, "Cabinet Type") PORT_DIPLOCATION("S551:1") + PORT_DIPSETTING(0x01, "Generic Cab") + PORT_DIPSETTING(0x00, "Dedicated Cab") + PORT_DIPNAME(0x0c, 0x0c, "Region") + PORT_DIPSETTING(0x00, "English") + PORT_DIPSETTING(0x04, "Japanese (2)") + PORT_DIPSETTING(0x08, "Korean") + PORT_DIPSETTING(0x0c, "Japanese") INPUT_PORTS_END static INPUT_PORTS_START(bldyror2) @@ -4727,7 +4727,7 @@ ROM_START( cbajbl ) // TODO: hook up bootleg protection ROM_REGION( 0x800000, "blprot", 0 ) - ROM_LOAD( "near_a1020b.bin", 0x000000, 0x020000, CRC(d4a68a96) SHA1(178a7e06381c2fa70c3dffd191facd96a39ff7d2) ) + ROM_LOAD( "near_a1020b.bin", 0x000000, 0x020000, CRC(d4a68a96) SHA1(178a7e06381c2fa70c3dffd191facd96a39ff7d2) ) ROM_REGION( 0x000008, "cat702_2", 0 ) ROM_LOAD( "mg03", 0x000000, 0x000008, CRC(8be79633) SHA1(f38f881b6139eb8368e593904cb50b6e68bdf2e9) )