From aec2726f9fea81a717996434063895ebb6d93fc6 Mon Sep 17 00:00:00 2001 From: flama12333 <143599905+flama12333@users.noreply.github.com> Date: Thu, 30 Oct 2025 16:15:04 -0500 Subject: [PATCH 1/3] Update input port p1 and add comment in marywu.cpp Replace IPT_KEYPAD with LPT_UNKNOWN --- src/mame/misc/marywu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mame/misc/marywu.cpp b/src/mame/misc/marywu.cpp index e155735fca72f..197cab9d34df1 100644 --- a/src/mame/misc/marywu.cpp +++ b/src/mame/misc/marywu.cpp @@ -102,8 +102,8 @@ static INPUT_PORTS_START( marywu ) PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_START("P1") - PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("P1.6") PORT_CODE(KEYCODE_C) // If press or IP_ACTIVE_LOW Will cause Error 30 if press - PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_NAME("P1.7") PORT_CODE(KEYCODE_V) // If press during startup, it will cause error 76. + PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN) // Hopper SW. If IP_ACTIVE_LOW Will cause Error 30. + PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_NAME("P1.7") PORT_CODE(KEYCODE_V) // 洗分 SW INPUT_PORTS_END void marywu_state::ay1_port_a_w(uint8_t data) From dee2851b9f2d49b53080b72ab5eaaa5ba4f89771 Mon Sep 17 00:00:00 2001 From: flama12333 <143599905+flama12333@users.noreply.github.com> Date: Thu, 30 Oct 2025 16:18:20 -0500 Subject: [PATCH 2/3] add P1.6 Comment in marywu.cpp --- src/mame/misc/marywu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mame/misc/marywu.cpp b/src/mame/misc/marywu.cpp index 197cab9d34df1..8d7771164bef3 100644 --- a/src/mame/misc/marywu.cpp +++ b/src/mame/misc/marywu.cpp @@ -102,7 +102,7 @@ static INPUT_PORTS_START( marywu ) PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_START("P1") - PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN) // Hopper SW. If IP_ACTIVE_LOW Will cause Error 30. + PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN) // P1.6 - Hopper SW. If IP_ACTIVE_LOW Will cause Error 30. PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_NAME("P1.7") PORT_CODE(KEYCODE_V) // 洗分 SW INPUT_PORTS_END From 3556a904bfb58cfde24bd937eaacb82222fb229b Mon Sep 17 00:00:00 2001 From: flama12333 <143599905+flama12333@users.noreply.github.com> Date: Thu, 30 Oct 2025 16:23:33 -0500 Subject: [PATCH 3/3] Add comment description regarding p1 bit. --- src/mame/misc/marywu.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/mame/misc/marywu.cpp b/src/mame/misc/marywu.cpp index 8d7771164bef3..43cd036d57c9c 100644 --- a/src/mame/misc/marywu.cpp +++ b/src/mame/misc/marywu.cpp @@ -14,7 +14,15 @@ 31 LEDs, 13 modules of double-digit 7-seg displays and 4 push-buttons). * we may also have user inputs from the coin slot and from the cabinet buttons, for making bets. - + * P1 bits are: + ENABLE (output) + 入表 (output) + 出表 (output) + SSR (output) + 入表檢查 (input) + 出表檢查 (input) + HOPPER SW (input) + 洗分 SW (input) **************************************************************************/ #include "emu.h"