]> git.sur5r.net Git - cc65/commitdiff
Merge pull request #326 from dmlloyd/master
authorgreg-king5 <gregdk@users.sf.net>
Fri, 29 Jul 2016 17:09:15 +0000 (13:09 -0400)
committerGitHub <noreply@github.com>
Fri, 29 Jul 2016 17:09:15 +0000 (13:09 -0400)
Add missing WDC instructions

src/ca65/instr.c

index 500db1985f429a669c2f2baa9256e49b90fa94d2..966a5cd98b9c7fcca5b9bceea3aa9b27c85f21d8 100644 (file)
@@ -376,7 +376,7 @@ static const struct {
 /* Instruction table for the 65C02 */
 static const struct {
     unsigned Count;
-    InsDesc  Ins[98];
+    InsDesc  Ins[100];
 } InsTab65C02 = {
     sizeof (InsTab65C02.Ins) / sizeof (InsTab65C02.Ins[0]),
     {
@@ -467,6 +467,7 @@ static const struct {
         { "SMB6", 0x0000004, 0xE7, 1, PutAll },
         { "SMB7", 0x0000004, 0xF7, 1, PutAll },
         { "STA",  0x000A66C, 0x80, 0, PutAll },
+        { "STP",  0x0000001, 0xdb, 0, PutAll },
         { "STX",  0x000010c, 0x82, 1, PutAll },
         { "STY",  0x000002c, 0x80, 1, PutAll },
         { "STZ",  0x000006c, 0x04, 5, PutAll },
@@ -477,7 +478,8 @@ static const struct {
         { "TSX",  0x0000001, 0xba, 0, PutAll },
         { "TXA",  0x0000001, 0x8a, 0, PutAll },
         { "TXS",  0x0000001, 0x9a, 0, PutAll },
-        { "TYA",  0x0000001, 0x98, 0, PutAll }
+        { "TYA",  0x0000001, 0x98, 0, PutAll },
+        { "WAI",  0x0000001, 0xcb, 0, PutAll }
     }
 };