diff options
author | 2009-06-19 19:14:27 +0000 | |
---|---|---|
committer | 2009-06-19 19:14:27 +0000 | |
commit | f6943c73e93d56f68fa26ab9c695c72bccfccbdd (patch) | |
tree | bc7724c0e7b1ca98dd87eeb9d485fc75e5269c81 /src/emu/cpu | |
parent | 39a1c1804df660258c477a26e009af3480011abc (diff) |
mc68hc11: Added SEC & SEV.
Added some basic video emulation to Hit Poker, to let it show "9rror / 3hut 5own -achine"
=========================================================================================
http://mamedev.emulab.it/kale/fast/files/0013_1049739007.png
Diffstat (limited to 'src/emu/cpu')
-rw-r--r-- | src/emu/cpu/mc68hc11/hc11ops.c | 12 | ||||
-rw-r--r-- | src/emu/cpu/mc68hc11/hc11ops.h | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/emu/cpu/mc68hc11/hc11ops.c b/src/emu/cpu/mc68hc11/hc11ops.c index e371d7cd55c..1fbdac0b702 100644 --- a/src/emu/cpu/mc68hc11/hc11ops.c +++ b/src/emu/cpu/mc68hc11/hc11ops.c @@ -2103,6 +2103,12 @@ static void HC11OP(rts)(hc11_state *cpustate) CYCLES(cpustate, 5); } +/* SEC 0x0D */ +static void HC11OP(sec)(hc11_state *cpustate) +{ + cpustate->ccr |= CC_C; + CYCLES(cpustate, 2); +} /* SEI 0x0F */ static void HC11OP(sei)(hc11_state *cpustate) @@ -2111,6 +2117,12 @@ static void HC11OP(sei)(hc11_state *cpustate) CYCLES(cpustate, 2); } +/* SEV 0x0B */ +static void HC11OP(sev)(hc11_state *cpustate) +{ + cpustate->ccr |= CC_V; + CYCLES(cpustate, 2); +} /* STAA DIR 0x97 */ static void HC11OP(staa_dir)(hc11_state *cpustate) diff --git a/src/emu/cpu/mc68hc11/hc11ops.h b/src/emu/cpu/mc68hc11/hc11ops.h index a8f9e6db361..d44ece759dc 100644 --- a/src/emu/cpu/mc68hc11/hc11ops.h +++ b/src/emu/cpu/mc68hc11/hc11ops.h @@ -176,7 +176,9 @@ static const hc11_opcode_list_struct hc11_opcode_list[] = { 0, 0x38, HC11OP(pulx) }, { 0x18, 0x38, HC11OP(puly) }, { 0, 0x39, HC11OP(rts) }, + { 0, 0x0d, HC11OP(sec) }, { 0, 0x0f, HC11OP(sei) }, + { 0, 0x0b, HC11OP(sev) }, { 0, 0x97, HC11OP(staa_dir) }, { 0, 0xb7, HC11OP(staa_ext) }, { 0, 0xa7, HC11OP(staa_indx) }, |