summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/m6502/m6507.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/m6502/m6507.cpp')
-rw-r--r--src/devices/cpu/m6502/m6507.cpp35
1 files changed, 6 insertions, 29 deletions
diff --git a/src/devices/cpu/m6502/m6507.cpp b/src/devices/cpu/m6502/m6507.cpp
index bb81a0928c3..ae1c984f1d1 100644
--- a/src/devices/cpu/m6502/m6507.cpp
+++ b/src/devices/cpu/m6502/m6507.cpp
@@ -2,47 +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()
-{
- mintf = std::make_unique<mi_6507>();
-
- init();
-}
-
-uint8_t m6507_device::mi_6507::read(uint16_t adr)
-{
- return program->read_byte(adr & 0x1fff);
-}
-
-uint8_t m6507_device::mi_6507::read_sync(uint16_t adr)
-{
- return scache->read_byte(adr & 0x1fff);
-}
-
-uint8_t m6507_device::mi_6507::read_arg(uint16_t adr)
-{
- return cache->read_byte(adr & 0x1fff);
-}
-
-void m6507_device::mi_6507::write(uint16_t adr, uint8_t val)
-{
- program->write_byte(adr & 0x1fff, val);
+ sprogram_config.m_logaddr_width = 13;
}