aboutsummaryrefslogtreecommitdiff
path: root/emu.c
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2012-04-25 23:23:00 +0000
committerDimitri Sokolyuk <demon@dim13.org>2012-04-25 23:23:00 +0000
commitea50d77dde924e81311ddebff2cf5f77c95d2229 (patch)
tree0248f5be2d328e016f8e1b920088d2d9f6b53fee /emu.c
parent9fe4b4f26402142dbe812d61107bb1a0668a9450 (diff)
spec 1.4 new op hcf
Diffstat (limited to 'emu.c')
-rw-r--r--emu.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/emu.c b/emu.c
index ea351c6..44dc49d 100644
--- a/emu.c
+++ b/emu.c
@@ -47,6 +47,12 @@ stop(unsigned short *a)
cycle += 1;
}
+void
+hcf(unsigned short *a)
+{
+ /* TODO */
+ cycle += 9;
+}
void
intr(unsigned short *a)
@@ -94,6 +100,7 @@ void (*extop[nExt])(unsigned short *a) = {
[NOP] = nop,
[JSR] = jsr,
[BRK] = stop,
+ [HCF] = hcf,
[INT] = intr,
[IAG] = iag,
[IAS] = ias,