diff options
Diffstat (limited to 'src/devices/cpu/m6502/m6507.cpp')
-rw-r--r-- | src/devices/cpu/m6502/m6507.cpp | 48 |
1 files changed, 6 insertions, 42 deletions
diff --git a/src/devices/cpu/m6502/m6507.cpp b/src/devices/cpu/m6502/m6507.cpp index ea97cf260e9..ae1c984f1d1 100644 --- a/src/devices/cpu/m6502/m6507.cpp +++ b/src/devices/cpu/m6502/m6507.cpp @@ -2,60 +2,24 @@ // copyright-holders:Olivier Galibert /*************************************************************************** - m6507.c + m6507.cpp MOS Technology 6502, NMOS variant with reduced address bus + 28-pin package, address bus is 13 bits, no NMI, no SO, no SYNC. + ***************************************************************************/ #include "emu.h" #include "m6507.h" -DEFINE_DEVICE_TYPE(M6507, m6507_device, "m6507", "MOS Technology M6507") +DEFINE_DEVICE_TYPE(M6507, m6507_device, "m6507", "MOS Technology 6507") m6507_device::m6507_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : 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; -} - -void m6507_device::device_start() -{ - if(cache_disabled) - mintf = std::make_unique<mi_6507_nd>(); - else - mintf = std::make_unique<mi_6507_normal>(); - - init(); -} - -uint8_t m6507_device::mi_6507_normal::read(uint16_t adr) -{ - return program->read_byte(adr & 0x1fff); -} - -uint8_t m6507_device::mi_6507_normal::read_sync(uint16_t adr) -{ - return scache->read_byte(adr & 0x1fff); -} - -uint8_t m6507_device::mi_6507_normal::read_arg(uint16_t adr) -{ - return cache->read_byte(adr & 0x1fff); -} - -void m6507_device::mi_6507_normal::write(uint16_t adr, uint8_t val) -{ - program->write_byte(adr & 0x1fff, val); -} - -uint8_t m6507_device::mi_6507_nd::read_sync(uint16_t adr) -{ - return sprogram->read_byte(adr & 0x1fff); -} - -uint8_t m6507_device::mi_6507_nd::read_arg(uint16_t adr) -{ - return program->read_byte(adr & 0x1fff); + sprogram_config.m_logaddr_width = 13; } |