From 3f7eee6219c3d2d10443ccc9e1cb9678b1dd10be Mon Sep 17 00:00:00 2001 From: arbee Date: Sat, 7 Jan 2023 19:20:19 -0500 Subject: apple2gs: support the Control Panel disable jumper that ROM 3 machines have. [R. Belmont] --- src/mame/apple/apple2gs.cpp | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src/mame/apple/apple2gs.cpp b/src/mame/apple/apple2gs.cpp index ec78262a5d2..26e09fc7a0a 100644 --- a/src/mame/apple/apple2gs.cpp +++ b/src/mame/apple/apple2gs.cpp @@ -3359,7 +3359,12 @@ u8 apple2gs_state::adbmicro_p3_in() { if (m_is_rom3) { - return 0x00; // TODO: 0x40 to remove Control Panel from the Control-Open Apple-Esc menu + // Check the jumper to remove the Control Panel from the Control-Open Apple-Esc CDA menu + if (m_sysconfig->read() & 0x08) + { + return 0x40; + } + return 0x00; } else { @@ -3733,6 +3738,15 @@ INPUT_PORTS_START( apple2gs ) PORT_CONFSETTING(0x07, "16 MHz ZipGS") INPUT_PORTS_END +INPUT_PORTS_START( apple2gsrom3 ) + PORT_INCLUDE( apple2gs ) + + PORT_MODIFY("a2_config") + PORT_CONFNAME(0x08, 0x00, "Disable CDA Control Panel") + PORT_CONFSETTING(0x00, DEF_STR(No)) + PORT_CONFSETTING(0x08, DEF_STR(Yes)) +INPUT_PORTS_END + void apple2gs_state::apple2gs(machine_config &config) { /* basic machine hardware */ @@ -3955,8 +3969,8 @@ ROM_END /* YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY FULLNAME */ -COMP( 1989, apple2gs, 0, apple2, apple2gs, apple2gs, apple2gs_state, rom3_init, "Apple Computer", "Apple IIgs (ROM03)", MACHINE_SUPPORTS_SAVE ) -COMP( 198?, apple2gsr3p, apple2gs, 0, apple2gs, apple2gs, apple2gs_state, rom3_init, "Apple Computer", "Apple IIgs (ROM03 prototype)", MACHINE_NOT_WORKING ) +COMP( 1989, apple2gs, 0, apple2, apple2gs, apple2gsrom3, apple2gs_state, rom3_init, "Apple Computer", "Apple IIgs (ROM03)", MACHINE_SUPPORTS_SAVE ) +COMP( 198?, apple2gsr3p, apple2gs, 0, apple2gs, apple2gsrom3, apple2gs_state, rom3_init, "Apple Computer", "Apple IIgs (ROM03 prototype)", MACHINE_NOT_WORKING ) COMP( 1987, apple2gsr1, apple2gs, 0, apple2gsr1, apple2gs, apple2gs_state, rom1_init, "Apple Computer", "Apple IIgs (ROM01)", MACHINE_SUPPORTS_SAVE ) COMP( 1986, apple2gsr0, apple2gs, 0, apple2gsr1, apple2gs, apple2gs_state, rom1_init, "Apple Computer", "Apple IIgs (ROM00)", MACHINE_SUPPORTS_SAVE ) COMP( 1986, apple2gsr0p, apple2gs, 0, apple2gsr1, apple2gs, apple2gs_state, rom1_init, "Apple Computer", "Apple IIgs (ROM00 prototype 6/19/1986)", MACHINE_SUPPORTS_SAVE ) -- cgit v1.2.3