diff options
author | 2016-09-27 14:24:33 +0100 | |
---|---|---|
committer | 2016-09-28 17:45:37 +1000 | |
commit | fd279ffffaba099464a584b52c7b5436305493e5 (patch) | |
tree | 31fdd998bc915b83a27f6ea1fbae29f662b32917 /src/devices/cpu/m6502/m6509.cpp | |
parent | 1de6465b1837b2dc391dcbe90df23a9c8427c750 (diff) |
Make sure all cpu's export STATE_GENPCBASE and use safe_pcbase() for everything in the debugger, which allows interruptible cpu's to work properly. [smf]
Diffstat (limited to 'src/devices/cpu/m6502/m6509.cpp')
-rw-r--r-- | src/devices/cpu/m6502/m6509.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/devices/cpu/m6502/m6509.cpp b/src/devices/cpu/m6502/m6509.cpp index d5a82a11fde..6d955a7edec 100644 --- a/src/devices/cpu/m6502/m6509.cpp +++ b/src/devices/cpu/m6502/m6509.cpp @@ -32,6 +32,7 @@ void m6509_device::device_start() init(); state_add(STATE_GENPC, "GENPC", XPC).callexport().noshow(); + state_add(STATE_GENPCBASE, "CURPC", XPC).callexport().noshow(); state_add(M6509_BI, "BI", bank_i); state_add(M6509_BY, "BY", bank_y); } @@ -47,6 +48,7 @@ void m6509_device::state_export(const device_state_entry &entry) { switch(entry.index()) { case STATE_GENPC: + case STATE_GENPCBASE: XPC = adr_in_bank_i(NPC); break; } |