extern struct FxInit_s SuperFX;
-void S9xResetSuperFX ()
+static void S9xResetSuperFX ()
{
SuperFX.vFlags = 0; //FX_FLAG_ROM_BUFFER;// | FX_FLAG_ADDRESS_CHECKING;
FxReset (&SuperFX);
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)
#define CLSR USEX8(GSU.pvRegisters[GSU_CLSR])
/* Execute instruction from the pipe, and fetch next byte to the pipe */
-#define FX_STEP { uint32 vOpcode = (uint32)PIPE; FETCHPIPE; \
-(*fx_ppfOpcodeTable[ (GSU.vStatusReg & 0x300) | vOpcode ])(); } \
+#define FX_STEP { \
+ uint32 vOpcode = (uint32)PIPE; \
+ FETCHPIPE; \
+ (*fx_ppfOpcodeTable[ (GSU.vStatusReg & 0x300) | vOpcode ])(); \
+} \
#define FX_FUNCTION_RUN 0
#define FX_FUNCTION_RUN_TO_BREAKPOINT 1
.endif
.endm
-@ #include "os9x_65c816_mac_mem.h"
.macro S9xGetWord
@ in : rscratch (0x00hhmmll)
@ out : rscratch (0xhhll0000)
1111:
.endm
.macro Op30 /*BMI*/
- asmRelative
+ asmRelative
BranchCheck0
TST rstatus, #MASK_NEG
BEQ 1111f
.endm
.macro OpAB
BIC reg_d_bank,reg_d_bank, #0xFF
- PullBrS
+ PullBrS
ORR reg_d_bank,reg_d_bank,rscratch, LSR #24
UPDATE_ZN
ADD2CYCLE
.endm
-.macro Op2B
- BIC reg_d,reg_d, #0xFF000000
- BIC reg_d,reg_d, #0x00FF0000
- PullWrS
+.macro Op2B
+ UXTH reg_d,reg_d
+ PullWrS
ORR reg_d,rscratch,reg_d
UPDATE_ZN
ADD2CYCLE