summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2019-09-17 16:35:24 +0200
committer hap <happppp@users.noreply.github.com>2019-09-17 16:35:35 +0200
commitc04d4758c6acaba90b0240d0237997dbbc578fac (patch)
tree73800b798e44707e7fdabba7c7d9225b7692d1b3
parent9b7944415704632be4a1e4e49f98aa07209b565a (diff)
add stack access to 65c02 reset too, add dummy reads before reset (nw)
-rw-r--r--src/devices/cpu/m6502/om6502.lst2
-rw-r--r--src/devices/cpu/m6502/om65c02.lst6
2 files changed, 8 insertions, 0 deletions
diff --git a/src/devices/cpu/m6502/om6502.lst b/src/devices/cpu/m6502/om6502.lst
index fd4a85dbf9c..d34e63c1d81 100644
--- a/src/devices/cpu/m6502/om6502.lst
+++ b/src/devices/cpu/m6502/om6502.lst
@@ -1218,6 +1218,8 @@ tya_imp
# exceptions
reset
+ read_pc_noinc();
+ read_pc_noinc();
read(SP); dec_SP();
read(SP); dec_SP();
read(SP); dec_SP();
diff --git a/src/devices/cpu/m6502/om65c02.lst b/src/devices/cpu/m6502/om65c02.lst
index dafeaec648e..b15133e3441 100644
--- a/src/devices/cpu/m6502/om65c02.lst
+++ b/src/devices/cpu/m6502/om65c02.lst
@@ -765,6 +765,12 @@ wai_imp
# exceptions
reset_c
+ read_pc_noinc();
+ read(0xffff);
+ read_pc_noinc();
+ read(SP); dec_SP();
+ read(SP); dec_SP();
+ read(SP); dec_SP();
P = (P | F_I) & ~F_D;
PC = read_arg(0xfffc);
PC = set_h(PC, read_arg(0xfffd));