From: emudave Date: Sat, 12 Feb 2011 21:55:25 +0000 (+0000) Subject: fixed a bug where the Opcode jump table was written to out of bounds X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90b92e36aa45f0e24d5f257d04853cfa30518b3b;p=cyclone68000.git fixed a bug where the Opcode jump table was written to out of bounds --- diff --git a/Cyclone/OpAny.cpp b/Cyclone/OpAny.cpp index 44d2e5c..92e695e 100644 --- a/Cyclone/OpAny.cpp +++ b/Cyclone/OpAny.cpp @@ -21,7 +21,9 @@ static unsigned short CPU_CALL OpRead16(unsigned int a) void OpUse(int op,int use) { char text[64]=""; - CyJump[op]=use; + + if (op>=0) + CyJump[op]=use; if (op!=use) return;