]> Shamusworld >> Repos - thunder/blobdiff - src/v63701.cpp
Removed useless cruft, fixed off-by-one bug in screen render.
[thunder] / src / v63701.cpp
index 3f01921f74819789e9da73063c702c220ef9ccc1..b76063fccc168a931ee92d83e1d8c63b620a0cf9 100644 (file)
@@ -2285,7 +2285,8 @@ static void Op8D(void)            // BSR
 
 static void Op6E(void)         // JMP ZP, X
 {
-       regs.pc = EA_ZP_X;
+       uint16_t m = EA_ZP_X;
+       regs.pc = m;
 }
 
 
@@ -2556,7 +2557,7 @@ static void Op__(void)
 // Ok, the exec_op[] array is globally defined here basically to save
 // a LOT of unnecessary typing.  Sure it's ugly, but hey, it works!
 //
-void (* exec_op[256])() = {
+static void (* exec_op[256])() = {
        Op__, Op01, Op__, Op__, Op04, Op05, Op06, Op07, Op08, Op09, Op0A, Op0B, Op0C, Op0D, Op0E, Op0F,
        Op10, Op11, OpUN, OpUN, Op__, Op__, Op16, Op17, Op18, Op19, Op1A, Op1B, Op__, Op__, Op__, Op__,
        Op20, Op21, Op22, Op23, Op24, Op25, Op26, Op27, Op28, Op29, Op2A, Op2B, Op2C, Op2D, Op2E, Op2F,