]> git.sur5r.net Git - cc65/commitdiff
Test file for illegal 6502 opcodes
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 9 Jan 2005 19:07:45 +0000 (19:07 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 9 Jan 2005 19:07:45 +0000 (19:07 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3362 b7a2c559-68d2-44c3-8de9-860c34a00d81

testcode/assembler/illegal.s [new file with mode: 0644]

diff --git a/testcode/assembler/illegal.s b/testcode/assembler/illegal.s
new file mode 100644 (file)
index 0000000..53b9ec5
--- /dev/null
@@ -0,0 +1,43 @@
+
+        .setcpu         "6502X"
+
+
+.macro  test    opc
+
+        opc     $00
+        opc     $00,x
+        opc     ($00,x)
+        opc     ($00),y
+        opc     $1234
+        opc     $1234,x
+        opc     $1234,y
+
+.endmacro
+
+
+        test    slo
+        test    rla
+        test    sre
+        test    rra
+        test    dcp
+        test    isc
+
+        sax     $00
+        sax     $00,y
+        sax     ($00,x)
+        sax     $1234
+
+        lax     $00
+        lax     $00,y
+        lax     ($00,x)
+        lax     ($00),y
+        lax     $1234
+        lax     $1234,y
+
+        anc     #$55
+        alr     #$55
+        arr     #$55
+        axs     #$55
+
+        las     $1234,y
+