X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=fxinst.cpp;h=a3db07bdc38e4c46d495621277c05abb2388b89e;hb=81061e50a0504063fb20e6a99d024841a6aba9f0;hp=54c300cb16bd9ee24515cc559cf3ce805c780ce0;hpb=3ddd6d5ea2811b783bf349c8947cf1bbaaf3c8b9;p=drnoksnes diff --git a/fxinst.cpp b/fxinst.cpp index 54c300c..a3db07b 100644 --- a/fxinst.cpp +++ b/fxinst.cpp @@ -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)