]> git.sur5r.net Git - cc65/commitdiff
Fixed an error introduced in revision 4427: The list of 65816 instructions
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 11 Dec 2011 23:40:53 +0000 (23:40 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 11 Dec 2011 23:40:53 +0000 (23:40 +0000)
contained two items less than the counter said (because in 4427 two were
deleted without adjusting the counter). Depending on the compilers
implementation of bsearch(), some of the 65826 instructions were not found
when searching the table.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5310 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ca65/instr.c

index 39c32f2eadc91464c4ce2ba0a7ef04c88d52b2d4..95bff155a6f14805eab4c3672fd3cad9386b71a4 100644 (file)
@@ -479,7 +479,7 @@ static const struct {
 /* Instruction table for the 65816 */
 static const struct {
     unsigned Count;
-    InsDesc  Ins[101];
+    InsDesc  Ins[99];
 } InsTab65816 = {
     sizeof (InsTab65816.Ins) / sizeof (InsTab65816.Ins[0]),
     {