From: uz Date: Sun, 11 Dec 2011 23:40:53 +0000 (+0000) Subject: Fixed an error introduced in revision 4427: The list of 65816 instructions X-Git-Tag: V2.13.3~154 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e8174de0f193d43d7113efb337167ec53c1452e6;p=cc65 Fixed an error introduced in revision 4427: The list of 65816 instructions 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 --- diff --git a/src/ca65/instr.c b/src/ca65/instr.c index 39c32f2ea..95bff155a 100644 --- a/src/ca65/instr.c +++ b/src/ca65/instr.c @@ -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]), {