diff options
author | hap <happppp@users.noreply.github.com> | 2020-05-28 16:41:45 +0200 |
---|---|---|
committer | hap <happppp@users.noreply.github.com> | 2020-05-28 16:41:58 +0200 |
commit | cb41dd3e67b3da92f6b6fad6e9c3fde373145586 (patch) | |
tree | 5e13800b2ed398a88cac48ff56ad415ca6d66100 /src/mame/drivers/namcos22.cpp | |
parent | ad492a0074cc9afb8f25124d358e226583539417 (diff) |
namcos22: small amount macro removal (nw)
Diffstat (limited to 'src/mame/drivers/namcos22.cpp')
-rw-r--r-- | src/mame/drivers/namcos22.cpp | 375 |
1 files changed, 188 insertions, 187 deletions
diff --git a/src/mame/drivers/namcos22.cpp b/src/mame/drivers/namcos22.cpp index e0663309e4a..7da3014144a 100644 --- a/src/mame/drivers/namcos22.cpp +++ b/src/mame/drivers/namcos22.cpp @@ -1197,7 +1197,7 @@ void namcos22_state::syscon_mcucontrol(offs_t offset, u8 data) m_mcu->set_input_line(INPUT_LINE_RESET, data ? CLEAR_LINE : ASSERT_LINE); } -READ8_MEMBER(namcos22_state::syscon_r) +u8 namcos22_state::syscon_r(offs_t offset) { return m_syscontrol[offset]; } @@ -1242,7 +1242,7 @@ READ8_MEMBER(namcos22_state::syscon_r) 0x1c: dsp control */ -WRITE8_MEMBER(namcos22_state::ss22_syscon_w) +void namcos22_state::ss22_syscon_w(offs_t offset, u8 data) { switch (offset) { @@ -1345,7 +1345,7 @@ INTERRUPT_GEN_MEMBER(namcos22s_state::namcos22s_interrupt) 0x1a: 0 or 1 or 0xff -> DSP control 0x1b: ? */ -WRITE8_MEMBER(namcos22_state::s22_syscon_w) +void namcos22_state::s22_syscon_w(offs_t offset, u8 data) { switch (offset) { @@ -1463,23 +1463,23 @@ INTERRUPT_GEN_MEMBER(namcos22_state::namcos22_interrupt) } -READ16_MEMBER(namcos22_state::namcos22_shared_r) +u16 namcos22_state::namcos22_shared_r(offs_t offset) { return m_shareram[offset]; } -WRITE16_MEMBER(namcos22_state::namcos22_shared_w) +void namcos22_state::namcos22_shared_w(offs_t offset, u16 data, u16 mem_mask) { COMBINE_DATA(&m_shareram[offset]); } -READ32_MEMBER(namcos22_state::namcos22_dspram_r) +u32 namcos22_state::namcos22_dspram_r(offs_t offset) { return m_polygonram[offset] | 0xff000000; // only d0-23 are connected } -WRITE32_MEMBER(namcos22_state::namcos22_dspram_w) +void namcos22_state::namcos22_dspram_w(offs_t offset, u32 data, u32 mem_mask) { if (ACCESSING_BITS_16_23) { @@ -1491,7 +1491,7 @@ WRITE32_MEMBER(namcos22_state::namcos22_dspram_w) } -READ16_MEMBER(namcos22_state::namcos22_keycus_r) +u16 namcos22_state::namcos22_keycus_r(offs_t offset) { // Like other Namco hardware, this chip is used for protection as well as // reading random values in some games. @@ -1556,7 +1556,7 @@ READ16_MEMBER(namcos22_state::namcos22_keycus_r) return m_keycus_rng; } -WRITE16_MEMBER(namcos22_state::namcos22_keycus_w) +void namcos22_state::namcos22_keycus_w(offs_t offset, u16 data, u16 mem_mask) { // for obfuscating keycus and/or random seed? } @@ -1583,18 +1583,14 @@ WRITE16_MEMBER(namcos22_state::namcos22_portbit_w) m_portbits[offset] = m_custom[offset].read_safe(0xffff); } -READ16_MEMBER(namcos22_state::namcos22_dipswitch_r) -{ - return m_dsw->read(); -} - -WRITE16_MEMBER(namcos22_state::namcos22_cpuleds_w) +void namcos22_state::namcos22_cpuleds_w(offs_t offset, u32 data, u32 mem_mask) { // 8 leds on cpu board, 0=on 1=off // on System22: two rows of 4 red leds // on SS22: GYRGYRGY green/yellow/red + COMBINE_DATA(&m_cpuled_data); for (int i = 0; i < 8; i++) - m_cpuled[i] = (~data << i & 0x80) ? 0 : 1; + m_cpuled_out[i] = (~data << i & 0x800000) ? 0 : 1; } WRITE32_MEMBER(namcos22s_state::namcos22s_chipselect_w) @@ -1704,7 +1700,7 @@ void namcos22_state::namcos22_am(address_map &map) * 0x50000000 - DIPSW3 * 0x50000001 - DIPSW2 */ - map(0x50000000, 0x50000003).rw(FUNC(namcos22_state::namcos22_dipswitch_r), FUNC(namcos22_state::namcos22_cpuleds_w)).umask32(0xffff0000); + map(0x50000000, 0x50000003).portr("DSW").w(FUNC(namcos22_state::namcos22_cpuleds_w)); map(0x50000008, 0x5000000b).rw(FUNC(namcos22_state::namcos22_portbit_r), FUNC(namcos22_state::namcos22_portbit_w)); /** @@ -1825,8 +1821,8 @@ void namcos22s_state::namcos22s_am(address_map &map) map(0x400000, 0x40001f).rw(FUNC(namcos22s_state::namcos22_keycus_r), FUNC(namcos22s_state::namcos22_keycus_w)); map(0x410000, 0x413fff).ram(); // C139 SCI buffer map(0x420000, 0x42000f).rw(FUNC(namcos22s_state::namcos22_sci_r), FUNC(namcos22s_state::namcos22_sci_w)); // C139 SCI registers - map(0x430000, 0x430003).w(FUNC(namcos22s_state::namcos22_cpuleds_w)).umask32(0xffff0000); - map(0x440000, 0x440003).r(FUNC(namcos22s_state::namcos22_dipswitch_r)).umask32(0xffff0000); + map(0x430000, 0x430003).w(FUNC(namcos22s_state::namcos22_cpuleds_w)); + map(0x440000, 0x440003).portr("DSW"); map(0x450008, 0x45000b).rw(FUNC(namcos22s_state::namcos22_portbit_r), FUNC(namcos22s_state::namcos22_portbit_w)); map(0x460000, 0x463fff).rw(m_eeprom, FUNC(eeprom_parallel_28xx_device::read), FUNC(eeprom_parallel_28xx_device::write)).umask32(0xff00ff00); map(0x700000, 0x70001f).rw(FUNC(namcos22s_state::syscon_r), FUNC(namcos22s_state::ss22_syscon_w)); @@ -1938,7 +1934,7 @@ void namcos22_state::slave_enable(bool enable) } -READ16_MEMBER(namcos22_state::namcos22_dspram16_r) +u16 namcos22_state::namcos22_dspram16_r(offs_t offset) { u32 value = m_polygonram[offset]; @@ -1966,7 +1962,7 @@ READ16_MEMBER(namcos22_state::namcos22_dspram16_r) return value; } -WRITE16_MEMBER(namcos22_state::namcos22_dspram16_w) +void namcos22_state::namcos22_dspram16_w(offs_t offset, u16 data, u16 mem_mask) { u32 value = m_polygonram[offset]; u16 lo = value & 0xffff; @@ -1994,7 +1990,7 @@ WRITE16_MEMBER(namcos22_state::namcos22_dspram16_w) m_polygonram[offset] = (hi << 16) | lo; } -WRITE16_MEMBER(namcos22_state::namcos22_dspram16_bank_w) +void namcos22_state::namcos22_dspram16_bank_w(offs_t offset, u16 data, u16 mem_mask) { COMBINE_DATA(&m_dspram_bank); } @@ -2034,29 +2030,29 @@ s32 namcos22_state::pointram_read(offs_t offs) // called from point_read } -WRITE16_MEMBER(namcos22_state::point_address_w) +void namcos22_state::point_address_w(u16 data) { m_point_address <<= 16; m_point_address |= data; } -WRITE16_MEMBER(namcos22_state::point_loword_iw) +void namcos22_state::point_loword_iw(u16 data) { m_point_data |= data; point_write(m_point_address++, m_point_data); } -WRITE16_MEMBER(namcos22_state::point_hiword_w) +void namcos22_state::point_hiword_w(u16 data) { m_point_data = data << 16; } -READ16_MEMBER(namcos22_state::point_loword_r) +u16 namcos22_state::point_loword_r() { return point_read(m_point_address) & 0xffff; } -READ16_MEMBER(namcos22_state::point_hiword_ir) +u16 namcos22_state::point_hiword_ir() { // high bit is unknown busy signal (ridgerac, ridgera2, raveracw, cybrcomm) return 0x8000 | (point_read(m_point_address++) >> 16 & 0x00ff); @@ -2068,7 +2064,7 @@ u16 namcos22_state::pdp_status_r() return m_dsp_master_bioz; } -READ16_MEMBER(namcos22_state::pdp_begin_r) +u16 namcos22_state::pdp_begin_r() { if (machine().side_effects_disabled()) return 0; @@ -2675,14 +2671,14 @@ void namcos22s_state::mcu_port4_w(u8 data) if (~m_mcu_iocontrol & data & 0x20) { for (int i = 0; i < 8; i++) - m_mcuout[i] = BIT(m_mcu_outdata, i); + m_mcu_out[i] = BIT(m_mcu_outdata, i); machine().bookkeeping().coin_counter_w(0, m_mcu_outdata & 1); } if (~m_mcu_iocontrol & data & 0x40) { for (int i = 0; i < 8; i++) - m_mcuout[8+i] = BIT(m_mcu_outdata, i); + m_mcu_out[8+i] = BIT(m_mcu_outdata, i); } m_mcu_iocontrol = data; @@ -2980,24 +2976,25 @@ static INPUT_PORTS_START( ridgera ) PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_MINMAX(0x00, 0xc0) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Brake Pedal") PORT_START("DSW") - PORT_DIPNAME( 0x0001, 0x0001, "Test Mode" ) PORT_DIPLOCATION("SW2:1") - PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) - PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW2:2" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "SW2:3" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0008, 0x0008, "SW2:4" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0010, 0x0010, "SW2:5" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0020, 0x0020, "SW2:6" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0040, 0x0040, "SW2:7" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW2:8" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0100, 0x0100, "SW3:1" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0200, 0x0200, "SW3:2" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0400, 0x0400, "SW3:3" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0800, 0x0800, "SW3:4" ) - PORT_DIPUNKNOWN_DIPLOC( 0x1000, 0x1000, "SW3:5" ) - PORT_DIPUNKNOWN_DIPLOC( 0x2000, 0x2000, "SW3:6" ) - PORT_DIPUNKNOWN_DIPLOC( 0x4000, 0x4000, "SW3:7" ) - PORT_DIPUNKNOWN_DIPLOC( 0x8000, 0x8000, "SW3:8" ) + PORT_DIPNAME( 0x00010000, 0x00010000, "Test Mode" ) PORT_DIPLOCATION("SW2:1") + PORT_DIPSETTING( 0x00010000, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) + PORT_DIPUNKNOWN_DIPLOC( 0x00020000, 0x00020000, "SW2:2" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00040000, 0x00040000, "SW2:3" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00080000, 0x00080000, "SW2:4" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00100000, 0x00100000, "SW2:5" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00200000, 0x00200000, "SW2:6" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00400000, 0x00400000, "SW2:7" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00800000, 0x00800000, "SW2:8" ) + PORT_DIPUNKNOWN_DIPLOC( 0x01000000, 0x01000000, "SW3:1" ) + PORT_DIPUNKNOWN_DIPLOC( 0x02000000, 0x02000000, "SW3:2" ) + PORT_DIPUNKNOWN_DIPLOC( 0x04000000, 0x04000000, "SW3:3" ) + PORT_DIPUNKNOWN_DIPLOC( 0x08000000, 0x08000000, "SW3:4" ) + PORT_DIPUNKNOWN_DIPLOC( 0x10000000, 0x10000000, "SW3:5" ) + PORT_DIPUNKNOWN_DIPLOC( 0x20000000, 0x20000000, "SW3:6" ) + PORT_DIPUNKNOWN_DIPLOC( 0x40000000, 0x40000000, "SW3:7" ) + PORT_DIPUNKNOWN_DIPLOC( 0x80000000, 0x80000000, "SW3:8" ) + PORT_BIT( 0x0000ffff, IP_ACTIVE_LOW, IPT_UNUSED ) INPUT_PORTS_END static INPUT_PORTS_START( ridgeracf ) @@ -3012,13 +3009,13 @@ static INPUT_PORTS_START( ridgeracf ) // DIP3-1 to DIP3-3 are for setting up the viewing angle (game used one board per screen?) // Some of the other dipswitches are for debugging, like with Ridge Racer 2. PORT_MODIFY("DSW") - PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "SW2:1" ) - PORT_DIPNAME( 0x0002, 0x0000, "Unknown" ) PORT_DIPLOCATION("SW2:2") // always on? - PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) - PORT_DIPNAME( 0x8000, 0x8000, "Test Mode 2" ) PORT_DIPLOCATION("SW3:8") - PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) + PORT_DIPUNKNOWN_DIPLOC( 0x00010000, 0x00010000, "SW2:1" ) + PORT_DIPNAME( 0x00020000, 0x00000000, "Unknown" ) PORT_DIPLOCATION("SW2:2") // always on? + PORT_DIPSETTING( 0x00020000, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) + PORT_DIPNAME( 0x80000000, 0x80000000, "Test Mode 2" ) PORT_DIPLOCATION("SW3:8") + PORT_DIPSETTING( 0x80000000, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) INPUT_PORTS_END static INPUT_PORTS_START( ridgera2 ) @@ -3039,9 +3036,9 @@ static INPUT_PORTS_START( ridgera2 ) 3-7 : debug polygons */ PORT_MODIFY("DSW") - PORT_DIPNAME( 0x8000, 0x8000, "Test Mode 2" ) PORT_DIPLOCATION("SW3:8") - PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) + PORT_DIPNAME( 0x80000000, 0x80000000, "Test Mode 2" ) PORT_DIPLOCATION("SW3:8") + PORT_DIPSETTING( 0x80000000, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) INPUT_PORTS_END static INPUT_PORTS_START( raveracw ) @@ -3092,22 +3089,23 @@ static INPUT_PORTS_START( cybrcomm ) PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_X ) PORT_MINMAX(0x47, 0xb7) PORT_CODE_DEC(KEYCODE_S) PORT_CODE_INC(KEYCODE_F) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_PLAYER(1) PORT_START("DSW") - PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "SW2:1" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW2:2" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "SW2:3" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0008, 0x0008, "SW2:4" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0010, 0x0010, "SW2:5" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0020, 0x0020, "SW2:6" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0040, 0x0040, "SW2:7" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW2:8" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0100, 0x0100, "SW3:1" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0200, 0x0200, "SW3:2" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0400, 0x0400, "SW3:3" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0800, 0x0800, "SW3:4" ) - PORT_DIPUNKNOWN_DIPLOC( 0x1000, 0x1000, "SW3:5" ) - PORT_DIPUNKNOWN_DIPLOC( 0x2000, 0x2000, "SW3:6" ) - PORT_DIPUNKNOWN_DIPLOC( 0x4000, 0x4000, "SW3:7" ) - PORT_DIPUNKNOWN_DIPLOC( 0x8000, 0x8000, "SW3:8" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00010000, 0x00010000, "SW2:1" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00020000, 0x00020000, "SW2:2" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00040000, 0x00040000, "SW2:3" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00080000, 0x00080000, "SW2:4" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00100000, 0x00100000, "SW2:5" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00200000, 0x00200000, "SW2:6" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00400000, 0x00400000, "SW2:7" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00800000, 0x00800000, "SW2:8" ) + PORT_DIPUNKNOWN_DIPLOC( 0x01000000, 0x01000000, "SW3:1" ) + PORT_DIPUNKNOWN_DIPLOC( 0x02000000, 0x02000000, "SW3:2" ) + PORT_DIPUNKNOWN_DIPLOC( 0x04000000, 0x04000000, "SW3:3" ) + PORT_DIPUNKNOWN_DIPLOC( 0x08000000, 0x08000000, "SW3:4" ) + PORT_DIPUNKNOWN_DIPLOC( 0x10000000, 0x10000000, "SW3:5" ) + PORT_DIPUNKNOWN_DIPLOC( 0x20000000, 0x20000000, "SW3:6" ) + PORT_DIPUNKNOWN_DIPLOC( 0x40000000, 0x40000000, "SW3:7" ) + PORT_DIPUNKNOWN_DIPLOC( 0x80000000, 0x80000000, "SW3:8" ) + PORT_BIT( 0x0000ffff, IP_ACTIVE_LOW, IPT_UNUSED ) INPUT_PORTS_END static INPUT_PORTS_START( acedrvr ) @@ -3139,26 +3137,27 @@ static INPUT_PORTS_START( acedrvr ) PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_MINMAX(0x00, 0x48) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Brake Pedal") PORT_START("DSW") - PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "SW2:1" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW2:2" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "SW2:3" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0008, 0x0008, "SW2:4" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0010, 0x0010, "SW2:5" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0020, 0x0020, "SW2:6" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0040, 0x0040, "SW2:7" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW2:8" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0100, 0x0100, "SW3:1" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0200, 0x0200, "SW3:2" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0400, 0x0400, "SW3:3" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0800, 0x0800, "SW3:4" ) - PORT_DIPUNKNOWN_DIPLOC( 0x1000, 0x1000, "SW3:5" ) - PORT_DIPUNKNOWN_DIPLOC( 0x2000, 0x2000, "SW3:6" ) - PORT_DIPNAME( 0x4000, 0x4000, "Test Mode?" ) PORT_DIPLOCATION("SW3:7") - PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) - PORT_DIPNAME( 0x8000, 0x8000, "Test Mode?" ) PORT_DIPLOCATION("SW3:8") // enter test mode if SW3:7 is on - PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) + PORT_DIPUNKNOWN_DIPLOC( 0x00010000, 0x00010000, "SW2:1" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00020000, 0x00020000, "SW2:2" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00040000, 0x00040000, "SW2:3" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00080000, 0x00080000, "SW2:4" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00100000, 0x00100000, "SW2:5" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00200000, 0x00200000, "SW2:6" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00400000, 0x00400000, "SW2:7" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00800000, 0x00800000, "SW2:8" ) + PORT_DIPUNKNOWN_DIPLOC( 0x01000000, 0x01000000, "SW3:1" ) + PORT_DIPUNKNOWN_DIPLOC( 0x02000000, 0x02000000, "SW3:2" ) + PORT_DIPUNKNOWN_DIPLOC( 0x04000000, 0x04000000, "SW3:3" ) + PORT_DIPUNKNOWN_DIPLOC( 0x08000000, 0x08000000, "SW3:4" ) + PORT_DIPUNKNOWN_DIPLOC( 0x10000000, 0x10000000, "SW3:5" ) + PORT_DIPUNKNOWN_DIPLOC( 0x20000000, 0x20000000, "SW3:6" ) + PORT_DIPNAME( 0x40000000, 0x40000000, "Test Mode?" ) PORT_DIPLOCATION("SW3:7") + PORT_DIPSETTING( 0x40000000, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) + PORT_DIPNAME( 0x80000000, 0x80000000, "Test Mode?" ) PORT_DIPLOCATION("SW3:8") // enter test mode if SW3:7 is on + PORT_DIPSETTING( 0x80000000, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) + PORT_BIT( 0x0000ffff, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_START("DEV") PORT_CONFNAME( 0x01, 0x00, "Enable Dev Inputs" ) @@ -3224,15 +3223,15 @@ static INPUT_PORTS_START( alpiner ) PORT_BIT( 0x3ff, 0x200, IPT_AD_STICK_X ) PORT_MINMAX(0x080, 0x380) PORT_SENSITIVITY(100) PORT_KEYDELTA(16) PORT_PLAYER(2) PORT_NAME("Steps Edge") PORT_START("DSW") - PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "SW4:1" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW4:2" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "SW4:3" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0008, 0x0008, "SW4:4" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0010, 0x0010, "SW4:5" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0020, 0x0020, "SW4:6" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0040, 0x0040, "SW4:7" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW4:8" ) - PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) + PORT_DIPUNKNOWN_DIPLOC( 0x00010000, 0x00010000, "SW4:1" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00020000, 0x00020000, "SW4:2" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00040000, 0x00040000, "SW4:3" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00080000, 0x00080000, "SW4:4" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00100000, 0x00100000, "SW4:5" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00200000, 0x00200000, "SW4:6" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00400000, 0x00400000, "SW4:7" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00800000, 0x00800000, "SW4:8" ) + PORT_BIT( 0xff00ffff, IP_ACTIVE_LOW, IPT_UNUSED ) INPUT_PORTS_END static INPUT_PORTS_START( airco22 ) @@ -3257,15 +3256,15 @@ static INPUT_PORTS_START( airco22 ) PORT_BIT( 0x3ff, 0x200, IPT_AD_STICK_Z ) PORT_MINMAX(0x100, 0x300) PORT_SENSITIVITY(100) PORT_KEYDELTA(12) PORT_NAME("Throttle Stick") PORT_START("DSW") - PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "SW4:1" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW4:2" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "SW4:3" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0008, 0x0008, "SW4:4" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0010, 0x0010, "SW4:5" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0020, 0x0020, "SW4:6" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0040, 0x0040, "SW4:7" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW4:8" ) - PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) + PORT_DIPUNKNOWN_DIPLOC( 0x00010000, 0x00010000, "SW4:1" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00020000, 0x00020000, "SW4:2" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00040000, 0x00040000, "SW4:3" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00080000, 0x00080000, "SW4:4" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00100000, 0x00100000, "SW4:5" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00200000, 0x00200000, "SW4:6" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00400000, 0x00400000, "SW4:7" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00800000, 0x00800000, "SW4:8" ) + PORT_BIT( 0xff00ffff, IP_ACTIVE_LOW, IPT_UNUSED ) INPUT_PORTS_END static INPUT_PORTS_START( cybrcycc ) @@ -3290,17 +3289,17 @@ static INPUT_PORTS_START( cybrcycc ) PORT_BIT( 0x3ff, 0x000, IPT_PEDAL2 ) PORT_MINMAX(0x000, 0x100) PORT_SENSITIVITY(100) PORT_KEYDELTA(40) PORT_NAME("Brake Pedal") PORT_START("DSW") - PORT_DIPNAME( 0x0001, 0x0001, "Test Mode" ) PORT_DIPLOCATION("SW4:1") - PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) - PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW4:2" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "SW4:3" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0008, 0x0008, "SW4:4" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0010, 0x0010, "SW4:5" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0020, 0x0020, "SW4:6" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0040, 0x0040, "SW4:7" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW4:8" ) - PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) + PORT_DIPNAME( 0x00010000, 0x00010000, "Test Mode" ) PORT_DIPLOCATION("SW4:1") + PORT_DIPSETTING( 0x00010000, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) + PORT_DIPUNKNOWN_DIPLOC( 0x00020000, 0x00020000, "SW4:2" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00040000, 0x00040000, "SW4:3" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00080000, 0x00080000, "SW4:4" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00100000, 0x00100000, "SW4:5" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00200000, 0x00200000, "SW4:6" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00400000, 0x00400000, "SW4:7" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00800000, 0x00800000, "SW4:8" ) + PORT_BIT( 0xff00ffff, IP_ACTIVE_LOW, IPT_UNUSED ) INPUT_PORTS_END static INPUT_PORTS_START( dirtdash ) @@ -3329,15 +3328,15 @@ static INPUT_PORTS_START( dirtdash ) PORT_BIT( 0x3ff, 0x000, IPT_PEDAL2 ) PORT_MINMAX(0x000, 0x100) PORT_SENSITIVITY(100) PORT_KEYDELTA(40) PORT_NAME("Brake Pedal") PORT_START("DSW") - PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "SW4:1" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW4:2" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "SW4:3" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0008, 0x0008, "SW4:4" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0010, 0x0010, "SW4:5" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0020, 0x0020, "SW4:6" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0040, 0x0040, "SW4:7" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW4:8" ) - PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) + PORT_DIPUNKNOWN_DIPLOC( 0x00010000, 0x00010000, "SW4:1" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00020000, 0x00020000, "SW4:2" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00040000, 0x00040000, "SW4:3" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00080000, 0x00080000, "SW4:4" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00100000, 0x00100000, "SW4:5" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00200000, 0x00200000, "SW4:6" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00400000, 0x00400000, "SW4:7" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00800000, 0x00800000, "SW4:8" ) + PORT_BIT( 0xff00ffff, IP_ACTIVE_LOW, IPT_UNUSED ) INPUT_PORTS_END static INPUT_PORTS_START( tokyowar ) @@ -3364,17 +3363,17 @@ static INPUT_PORTS_START( tokyowar ) PORT_BIT( 0x3ff, 0x000, IPT_PEDAL2 ) PORT_MINMAX(0x000, 0x100) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_NAME("Brake Pedal") PORT_START("DSW") - PORT_DIPNAME( 0x0001, 0x0001, "Test Mode" ) PORT_DIPLOCATION("SW4:1") - PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) - PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW4:2" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "SW4:3" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0008, 0x0008, "SW4:4" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0010, 0x0010, "SW4:5" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0020, 0x0020, "SW4:6" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0040, 0x0040, "SW4:7" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW4:8" ) - PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) + PORT_DIPNAME( 0x00010000, 0x00010000, "Test Mode" ) PORT_DIPLOCATION("SW4:1") + PORT_DIPSETTING( 0x00010000, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) + PORT_DIPUNKNOWN_DIPLOC( 0x00020000, 0x00020000, "SW4:2" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00040000, 0x00040000, "SW4:3" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00080000, 0x00080000, "SW4:4" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00100000, 0x00100000, "SW4:5" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00200000, 0x00200000, "SW4:6" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00400000, 0x00400000, "SW4:7" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00800000, 0x00800000, "SW4:8" ) + PORT_BIT( 0xff00ffff, IP_ACTIVE_LOW, IPT_UNUSED ) INPUT_PORTS_END static INPUT_PORTS_START( aquajet ) @@ -3399,17 +3398,17 @@ static INPUT_PORTS_START( aquajet ) PORT_BIT( 0x3ff, 0x1fc, IPT_AD_STICK_Y ) PORT_MINMAX(0x000, 0x3f8) PORT_SENSITIVITY(100) PORT_KEYDELTA(40) PORT_REVERSE PORT_START("DSW") - PORT_DIPNAME( 0x0001, 0x0001, "Test Mode" ) PORT_DIPLOCATION("SW4:1") - PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) - PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW4:2" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "SW4:3" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0008, 0x0008, "SW4:4" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0010, 0x0010, "SW4:5" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0020, 0x0020, "SW4:6" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0040, 0x0040, "SW4:7" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW4:8" ) - PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) + PORT_DIPNAME( 0x00010000, 0x00010000, "Test Mode" ) PORT_DIPLOCATION("SW4:1") + PORT_DIPSETTING( 0x00010000, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) + PORT_DIPUNKNOWN_DIPLOC( 0x00020000, 0x00020000, "SW4:2" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00040000, 0x00040000, "SW4:3" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00080000, 0x00080000, "SW4:4" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00100000, 0x00100000, "SW4:5" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00200000, 0x00200000, "SW4:6" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00400000, 0x00400000, "SW4:7" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00800000, 0x00800000, "SW4:8" ) + PORT_BIT( 0xff00ffff, IP_ACTIVE_LOW, IPT_UNUSED ) INPUT_PORTS_END static INPUT_PORTS_START( adillor ) @@ -3432,17 +3431,17 @@ static INPUT_PORTS_START( adillor ) PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_MINMAX(0x01, 0xff) PORT_SENSITIVITY(100) PORT_KEYDELTA(8) PORT_NAME("Trackball Y") PORT_REVERSE PORT_START("DSW") - PORT_DIPNAME( 0x0001, 0x0001, "Test Mode" ) PORT_DIPLOCATION("SW4:1") - PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) - PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW4:2" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "SW4:3" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0008, 0x0008, "SW4:4" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0010, 0x0010, "SW4:5" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0020, 0x0020, "SW4:6" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0040, 0x0040, "SW4:7" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW4:8" ) - PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) + PORT_DIPNAME( 0x00010000, 0x00010000, "Test Mode" ) PORT_DIPLOCATION("SW4:1") + PORT_DIPSETTING( 0x00010000, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) + PORT_DIPUNKNOWN_DIPLOC( 0x00020000, 0x00020000, "SW4:2" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00040000, 0x00040000, "SW4:3" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00080000, 0x00080000, "SW4:4" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00100000, 0x00100000, "SW4:5" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00200000, 0x00200000, "SW4:6" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00400000, 0x00400000, "SW4:7" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00800000, 0x00800000, "SW4:8" ) + PORT_BIT( 0xff00ffff, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_START("DEV") PORT_CONFNAME( 0x01, 0x00, "Enable Dev Inputs" ) @@ -3483,15 +3482,15 @@ static INPUT_PORTS_START( propcycl ) PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Z ) PORT_MINMAX(0x01, 0xff) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Cycle Pedal") PORT_START("DSW") - PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "SW4:1" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW4:2" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "SW4:3" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0008, 0x0008, "SW4:4" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0010, 0x0010, "SW4:5" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0020, 0x0020, "SW4:6" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0040, 0x0040, "SW4:7" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW4:8" ) - PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) + PORT_DIPUNKNOWN_DIPLOC( 0x00010000, 0x00010000, "SW4:1" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00020000, 0x00020000, "SW4:2" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00040000, 0x00040000, "SW4:3" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00080000, 0x00080000, "SW4:4" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00100000, 0x00100000, "SW4:5" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00200000, 0x00200000, "SW4:6" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00400000, 0x00400000, "SW4:7" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00800000, 0x00800000, "SW4:8" ) + PORT_BIT( 0xff00ffff, IP_ACTIVE_LOW, IPT_UNUSED ) INPUT_PORTS_END static INPUT_PORTS_START( timecris ) @@ -3513,17 +3512,17 @@ static INPUT_PORTS_START( timecris ) PORT_BIT( 0xffff, 43+241/2, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_MINMAX(43, 43+241) PORT_SENSITIVITY(64) PORT_KEYDELTA(4) PORT_START("DSW") - PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "SW4:1" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW4:2" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "SW4:3" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0008, 0x0008, "SW4:4" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0010, 0x0010, "SW4:5" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0020, 0x0020, "SW4:6" ) - PORT_DIPUNKNOWN_DIPLOC( 0x0040, 0x0040, "SW4:7" ) - PORT_DIPNAME( 0x0080, 0x0080, "Test Mode" ) PORT_DIPLOCATION("SW4:8") - PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) - PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) + PORT_DIPUNKNOWN_DIPLOC( 0x00010000, 0x00010000, "SW4:1" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00020000, 0x00020000, "SW4:2" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00040000, 0x00040000, "SW4:3" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00080000, 0x00080000, "SW4:4" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00100000, 0x00100000, "SW4:5" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00200000, 0x00200000, "SW4:6" ) + PORT_DIPUNKNOWN_DIPLOC( 0x00400000, 0x00400000, "SW4:7" ) + PORT_DIPNAME( 0x00800000, 0x00800000, "Test Mode" ) PORT_DIPLOCATION("SW4:8") + PORT_DIPSETTING( 0x00800000, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00000000, DEF_STR( On ) ) + PORT_BIT( 0xff00ffff, IP_ACTIVE_LOW, IPT_UNUSED ) INPUT_PORTS_END @@ -3620,11 +3619,12 @@ ALLOW_SAVE_TYPE(namcos22_dsp_upload_state); void namcos22_state::machine_start() { - m_mcuout.resolve(); - m_cpuled.resolve(); + m_mcu_out.resolve(); + m_cpuled_out.resolve(); m_portbits[0] = 0xffff; m_portbits[1] = 0xffff; + m_cpuled_data = 0; m_keycus_rng = 0; m_su_82 = 0; m_irq_state = 0; @@ -3665,6 +3665,7 @@ void namcos22_state::machine_start() save_item(NAME(m_irq_enabled)); save_item(NAME(m_dsp_upload_state)); save_item(NAME(m_UploadDestIdx)); + save_item(NAME(m_cpuled_data)); save_item(NAME(m_su_82)); save_item(NAME(m_keycus_id)); save_item(NAME(m_keycus_rng)); |