importing zeemote driver
[drnoksnes] / fxinst.cpp
index 54c300c..a3db07b 100644 (file)
@@ -453,15 +453,16 @@ static void fx_plot_8bit()
     R15++;
     CLRFLAGS;
     R1++;
-    
+
 #ifdef CHECK_LIMITS
     if(y >= GSU.vScreenHeight) return;
 #endif
-    c = (uint8)GSU.vColorReg;
-    if(GSU.vPlotOptionReg & 0x10)
-       if( !(GSU.vPlotOptionReg & 0x01) && !(c&0xf)) return;
-    else
-       if( !(GSU.vPlotOptionReg & 0x01) && !c) return;
+       c = (uint8)GSU.vColorReg;
+       if(GSU.vPlotOptionReg & 0x10) {
+               if( !(GSU.vPlotOptionReg & 0x01) && !(c&0xf)) return;
+       } else {
+               if( !(GSU.vPlotOptionReg & 0x01) && !c) return;
+       }
 
     a = GSU.apvScreen[y >> 3] + GSU.x[x >> 3] + ((y & 7) << 1);
     v = 128 >> (x&7);
@@ -1564,16 +1565,17 @@ static void fx_sm_r15() { FX_SM(15); }
 
 static uint32 fx_run(uint32 nInstructions)
 {
-    GSU.vCounter = nInstructions;
-    READR14;
-    while(GSU.vCounter-- > 0)
-       FX_STEP;
+       GSU.vCounter = nInstructions;
+       READR14;
+       while(GSU.vCounter-- > 0) {
+               FX_STEP;
+       }
  /*
 #ifndef FX_ADDRESS_CHECK
     GSU.vPipeAdr = USEX16(R15-1) | (USEX8(GSU.vPrgBankReg)<<16);
 #endif
 */
-    return (nInstructions - GSU.vInstCount);
+       return nInstructions - GSU.vInstCount;
 }
 
 static uint32 fx_run_to_breakpoint(uint32 nInstructions)