summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/m6502/om6509.lst
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2012-11-06 16:27:39 +0000
committer Olivier Galibert <galibert@pobox.com>2012-11-06 16:27:39 +0000
commitfac1ca581b31525279ead471282c1eed1790daab (patch)
tree3870b4c93b8c72f54062dbe68a0cbd2750c9ec26 /src/emu/cpu/m6502/om6509.lst
parent54b3c7a31dd607b734e55d9ca96254f0801abb6b (diff)
6502: Rewrite modern, cycle-exact and interruptible [O. Galibert]
Diffstat (limited to 'src/emu/cpu/m6502/om6509.lst')
-rw-r--r--src/emu/cpu/m6502/om6509.lst20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/emu/cpu/m6502/om6509.lst b/src/emu/cpu/m6502/om6509.lst
index e69de29bb2d..f09d8f7d5f1 100644
--- a/src/emu/cpu/m6502/om6509.lst
+++ b/src/emu/cpu/m6502/om6509.lst
@@ -0,0 +1,20 @@
+# 6509 opcodes
+
+lda_9_idy
+ TMP2 = read_pc();
+ TMP = read(TMP2);
+ TMP = set_h(TMP, read(TMP2+1));
+ if(page_changing(TMP, Y)) {
+ read_9(set_l(TMP, TMP+Y));
+ }
+ A = read_9(TMP+Y);
+ set_nz(A);
+ prefetch();
+
+sta_9_idy
+ TMP2 = read_pc();
+ TMP = read(TMP2);
+ TMP = set_h(TMP, read(TMP2+1));
+ read_9(set_l(TMP, TMP+Y));
+ write_9(TMP+Y, A);
+ prefetch();