m6503/4/7: change logaddr width

This commit is contained in:
hap 2023-07-24 19:22:02 +02:00
parent 0409e04151
commit 191839dd6a
5 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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);
}