diff options
author | 2009-12-29 14:35:54 +0000 | |
---|---|---|
committer | 2009-12-29 14:35:54 +0000 | |
commit | 81523f2e101d3ffea62041420c244030e9d572e7 (patch) | |
tree | 8b1727ae32b7f89ce1a9cffbbea6605a9100dd64 /src/emu/cpu/spc700 | |
parent | bee6282e99533a240a386f67a203e6ae043aa20e (diff) |
gcc 4.5.0 compilation fixes.
Diffstat (limited to 'src/emu/cpu/spc700')
-rw-r--r-- | src/emu/cpu/spc700/spc700.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/emu/cpu/spc700/spc700.c b/src/emu/cpu/spc700/spc700.c index fe6dace7e27..b809894df60 100644 --- a/src/emu/cpu/spc700/spc700.c +++ b/src/emu/cpu/spc700/spc700.c @@ -848,8 +848,8 @@ INLINE void SET_FLAG_I(spc700i_cpu *cpustate, uint value) CLK(BCLK); \ DST = EA_DP(cpustate); \ FLAG_NZ = MAKE_UINT_16(read_16_DP(DST) - 1); \ - write_16_DP(DST, FLAG_NZ); \ - FLAG_NZ = NZFLAG_16(FLAG_NZ) + write_16_DP(DST, FLAG_Z); \ + FLAG_NZ = NZFLAG_16(FLAG_Z) /* Disable interrupts */ #define OP_DI(BCLK) \ @@ -918,8 +918,8 @@ INLINE void SET_FLAG_I(spc700i_cpu *cpustate, uint value) CLK(BCLK); \ DST = EA_DP(cpustate); \ FLAG_NZ = MAKE_UINT_16(read_16_DP(DST) + 1); \ - write_16_DP(DST, FLAG_NZ); \ - FLAG_NZ = NZFLAG_16(FLAG_NZ) + write_16_DP(DST, FLAG_Z); \ + FLAG_NZ = NZFLAG_16(FLAG_Z) /* Jump */ /* If we're in a busy loop, eat all clock cycles */ @@ -981,8 +981,8 @@ INLINE void SET_FLAG_I(spc700i_cpu *cpustate, uint value) #define OP_MOVWMR(BCLK) \ CLK(BCLK); \ FLAG_NZ = OPER_16_DP(cpustate); \ - SET_REG_YA(cpustate, FLAG_NZ); \ - FLAG_NZ = NZFLAG_16(FLAG_NZ) + SET_REG_YA(cpustate, FLAG_Z); \ + FLAG_NZ = NZFLAG_16(FLAG_Z) /* Move from Stack pointer to X */ #define OP_MOVSX(BCLK) \ |