summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/m6502/m6509.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2018-02-07 18:20:33 +0100
committer Olivier Galibert <galibert@pobox.com>2018-02-07 18:20:33 +0100
commit38306e6b274b690d5e803d3426a864ff3f5cb8f2 (patch)
treee6d5de1a8622947ec5ecceb6620f7ef4ccf51347 /src/devices/cpu/m6502/m6509.cpp
parent870695380c3f05324cb32e653c224089f9263e8c (diff)
m6502: Fixed paged variants tracing and breakpoints [O. Galibert]
Diffstat (limited to 'src/devices/cpu/m6502/m6509.cpp')
-rw-r--r--src/devices/cpu/m6502/m6509.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/devices/cpu/m6502/m6509.cpp b/src/devices/cpu/m6502/m6509.cpp
index 5fdf1114f96..a954df176cc 100644
--- a/src/devices/cpu/m6502/m6509.cpp
+++ b/src/devices/cpu/m6502/m6509.cpp
@@ -15,7 +15,7 @@
DEFINE_DEVICE_TYPE(M6509, m6509_device, "m6509", "M6509")
m6509_device::m6509_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
- m6502_device(mconfig, M6509, tag, owner, clock), XPC(0), bank_i(0), bank_y(0)
+ m6502_device(mconfig, M6509, tag, owner, clock), bank_i(0), bank_y(0)
{
program_config.m_addr_width = 20;
program_config.m_logaddr_width = 20;
@@ -45,14 +45,9 @@ void m6509_device::device_reset()
bank_y = 0x0f;
}
-void m6509_device::state_export(const device_state_entry &entry)
+offs_t m6509_device::pc_to_external(u16 pc)
{
- switch(entry.index()) {
- case STATE_GENPC:
- case STATE_GENPCBASE:
- XPC = adr_in_bank_i(NPC);
- break;
- }
+ return adr_in_bank_i(pc);
}
util::disasm_interface *m6509_device::create_disassembler()