diff options
author | 2008-11-07 00:07:57 +0000 | |
---|---|---|
committer | 2008-11-07 00:07:57 +0000 | |
commit | e4550f0b661da196ea33bb2b3c28544b3f02dc44 (patch) | |
tree | 3cd8c5751ebb7e980ddd13080a51c932a07c46ec /src/emu/cpu/m6502/t65c02.c | |
parent | 42c486632bc64f87643a100dfdb448af53d17d36 (diff) |
"Pointer"-ified the 6502
* a perfect candidate for a code merge. Replication all over the place.
Diffstat (limited to 'src/emu/cpu/m6502/t65c02.c')
-rw-r--r-- | src/emu/cpu/m6502/t65c02.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/cpu/m6502/t65c02.c b/src/emu/cpu/m6502/t65c02.c index 05907f0a43e..0cda6fb4a53 100644 --- a/src/emu/cpu/m6502/t65c02.c +++ b/src/emu/cpu/m6502/t65c02.c @@ -24,7 +24,7 @@ *****************************************************************************/ #undef OP -#define OP(nn) INLINE void m65c02_##nn(void) +#define OP(nn) INLINE void m65c02_##nn(m6502_Regs *m6502) /***************************************************************************** ***************************************************************************** @@ -326,7 +326,7 @@ OP(bf) { int tmp; RD_ZPG; BBS(3); } /* 5-7 BBS3 ZPG */ OP(df) { int tmp; RD_ZPG; BBS(5); } /* 5-7 BBS5 ZPG */ OP(ff) { int tmp; RD_ZPG; BBS(7); } /* 5-7 BBS7 ZPG */ -static void (*const insn65c02[0x100])(void) = { +static void (*const insn65c02[0x100])(m6502_Regs *m6502) = { m65c02_00,m65c02_01,m65c02_02,m65c02_03,m65c02_04,m65c02_05,m65c02_06,m65c02_07, m65c02_08,m65c02_09,m65c02_0a,m65c02_0b,m65c02_0c,m65c02_0d,m65c02_0e,m65c02_0f, m65c02_10,m65c02_11,m65c02_12,m65c02_13,m65c02_14,m65c02_15,m65c02_16,m65c02_17, @@ -371,7 +371,7 @@ OP(7e_wdc) { int tmp; RD_ABX_P; RD_EA; ROR; WB_EA; } /* 6 ROR ABX page pena OP(de_wdc) { int tmp; RD_ABX_P; RD_EA; DEC; WB_EA; } /* 6 DEC ABX page penalty */ OP(fe_wdc) { int tmp; RD_ABX_P; RD_EA; INC; WB_EA; } /* 6 INC ABX page penalty */ -static void (*const insnwdc65c02[0x100])(void) = { +static void (*const insnwdc65c02[0x100])(m6502_Regs *m6502) = { m65c02_00,m65c02_01,m65c02_02,m65c02_03,m65c02_04,m65c02_05,m65c02_06,m65c02_07, m65c02_08,m65c02_09,m65c02_0a,m65c02_0b,m65c02_0c,m65c02_0d,m65c02_0e,m65c02_0f, m65c02_10,m65c02_11,m65c02_12,m65c02_13,m65c02_14,m65c02_15,m65c02_16,m65c02_17, |