From 191839dd6aaf1acca4f82c7bca796ca909b95025 Mon Sep 17 00:00:00 2001 From: hap Date: Mon, 24 Jul 2023 19:22:02 +0200 Subject: m6503/4/7: change logaddr width --- src/devices/cpu/m6502/m6502.cpp | 2 ++ src/devices/cpu/m6502/m6503.cpp | 2 ++ src/devices/cpu/m6502/m6504.cpp | 2 ++ src/devices/cpu/m6502/m6507.cpp | 2 ++ src/mame/shared/gottlieb_a.cpp | 2 +- 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/devices/cpu/m6502/m6502.cpp b/src/devices/cpu/m6502/m6502.cpp index a8f7d508c43..1405023d73e 100644 --- a/src/devices/cpu/m6502/m6502.cpp +++ b/src/devices/cpu/m6502/m6502.cpp @@ -47,6 +47,8 @@ void m6502_device::init() if(mintf) { space(AS_PROGRAM).cache(mintf->cprogram); space(has_space(AS_OPCODES) ? AS_OPCODES : AS_PROGRAM).cache(mintf->csprogram); + + // specific group 1-14 or 15-31 if(space(AS_PROGRAM).addr_width() > 14) space(AS_PROGRAM).specific(mintf->program); else diff --git a/src/devices/cpu/m6502/m6503.cpp b/src/devices/cpu/m6502/m6503.cpp index 1c1b2a71a55..efaeca3b5a2 100644 --- a/src/devices/cpu/m6502/m6503.cpp +++ b/src/devices/cpu/m6502/m6503.cpp @@ -19,5 +19,7 @@ m6503_device::m6503_device(const machine_config &mconfig, const char *tag, devic m6502_device(mconfig, M6503, tag, owner, clock) { program_config.m_addr_width = 12; + program_config.m_logaddr_width = 12; sprogram_config.m_addr_width = 12; + sprogram_config.m_logaddr_width = 12; } diff --git a/src/devices/cpu/m6502/m6504.cpp b/src/devices/cpu/m6502/m6504.cpp index 393abfa667c..3a859621917 100644 --- a/src/devices/cpu/m6502/m6504.cpp +++ b/src/devices/cpu/m6502/m6504.cpp @@ -19,5 +19,7 @@ m6504_device::m6504_device(const machine_config &mconfig, const char *tag, devic m6502_device(mconfig, M6504, tag, owner, clock) { program_config.m_addr_width = 13; + program_config.m_logaddr_width = 13; sprogram_config.m_addr_width = 13; + sprogram_config.m_logaddr_width = 13; } diff --git a/src/devices/cpu/m6502/m6507.cpp b/src/devices/cpu/m6502/m6507.cpp index ce95b35807d..ae1c984f1d1 100644 --- a/src/devices/cpu/m6502/m6507.cpp +++ b/src/devices/cpu/m6502/m6507.cpp @@ -19,5 +19,7 @@ m6507_device::m6507_device(const machine_config &mconfig, const char *tag, devic m6502_device(mconfig, M6507, tag, owner, clock) { program_config.m_addr_width = 13; + program_config.m_logaddr_width = 13; sprogram_config.m_addr_width = 13; + sprogram_config.m_logaddr_width = 13; } diff --git a/src/mame/shared/gottlieb_a.cpp b/src/mame/shared/gottlieb_a.cpp index 901cfa859f1..5d4a9610b9b 100644 --- a/src/mame/shared/gottlieb_a.cpp +++ b/src/mame/shared/gottlieb_a.cpp @@ -114,7 +114,7 @@ INPUT_PORTS_END INPUT_CHANGED_MEMBER( gottlieb_sound_p2_device::audio_nmi ) { // Diagnostic button sends a pulse to NMI pin - if (newval==CLEAR_LINE) + if (!newval) m_cpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero); } -- cgit v1.2.3