summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/mc68hc11/hc11ops.c
diff options
context:
space:
mode:
author Angelo Salese <angelosa@users.noreply.github.com>2009-06-19 19:14:27 +0000
committer Angelo Salese <angelosa@users.noreply.github.com>2009-06-19 19:14:27 +0000
commitf6943c73e93d56f68fa26ab9c695c72bccfccbdd (patch)
treebc7724c0e7b1ca98dd87eeb9d485fc75e5269c81 /src/emu/cpu/mc68hc11/hc11ops.c
parent39a1c1804df660258c477a26e009af3480011abc (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/mc68hc11/hc11ops.c')
-rw-r--r--src/emu/cpu/mc68hc11/hc11ops.c12
1 files changed, 12 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)