fixed a bug where the Opcode jump table was written to out of bounds
authoremudave <emudave@gmail.com>
Sat, 12 Feb 2011 21:55:25 +0000 (21:55 +0000)
committeremudave <emudave@gmail.com>
Sat, 12 Feb 2011 21:55:25 +0000 (21:55 +0000)
Cyclone/OpAny.cpp

index 44d2e5c..92e695e 100644 (file)
@@ -21,7 +21,9 @@ static unsigned short CPU_CALL OpRead16(unsigned int a)
 void OpUse(int op,int use)\r
 {\r
   char text[64]="";\r
-  CyJump[op]=use;\r
+  \r
+  if (op>=0)\r
+         CyJump[op]=use;\r
 \r
   if (op!=use) return;\r
 \r