fixed a bug where the Opcode jump table was written to out of bounds
[cyclone68000.git] / 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