summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/m6502/opsce02.h
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-12-29 14:35:54 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-12-29 14:35:54 +0000
commit81523f2e101d3ffea62041420c244030e9d572e7 (patch)
tree8b1727ae32b7f89ce1a9cffbbea6605a9100dd64 /src/emu/cpu/m6502/opsce02.h
parentbee6282e99533a240a386f67a203e6ae043aa20e (diff)
gcc 4.5.0 compilation fixes.
Diffstat (limited to 'src/emu/cpu/m6502/opsce02.h')
-rw-r--r--src/emu/cpu/m6502/opsce02.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/cpu/m6502/opsce02.h b/src/emu/cpu/m6502/opsce02.h
index 84eb1063a02..91a481f0755 100644
--- a/src/emu/cpu/m6502/opsce02.h
+++ b/src/emu/cpu/m6502/opsce02.h
@@ -441,7 +441,7 @@
* DEA Decrement accumulator
***************************************************************/
#define DEA \
- A = (UINT8)--A; \
+ A = (UINT8)(A - 1); \
SET_NZ(A)
/* 65ce02 ******************************************************
@@ -455,7 +455,7 @@
* DEW Decrement memory word
***************************************************************/
#define DEW \
- tmp.w.l = --tmp.w.l; \
+ tmp.w.l -= 1; \
SET_NZ_WORD(tmp)
/* 65ce02 ******************************************************
@@ -490,7 +490,7 @@
* INA Increment accumulator
***************************************************************/
#define INA \
- A = (UINT8)++A; \
+ A = (UINT8)(A + 1); \
SET_NZ(A)
/* 65ce02 ******************************************************
@@ -504,7 +504,7 @@
* INW Increment memory word
***************************************************************/
#define INW \
- tmp.w.l = ++tmp.w.l; \
+ tmp.w.l += 1; \
SET_NZ_WORD(tmp)
/* 65ce02 ******************************************************