aboutsummaryrefslogtreecommitdiff
path: root/emu.c
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2012-04-27 13:25:06 +0000
committerDimitri Sokolyuk <demon@dim13.org>2012-04-27 13:25:06 +0000
commit1c864648856daab4c827261da0c28416ae25da9f (patch)
tree079993d674888d6910cd2cde114aca17542ceae7 /emu.c
parent2ca6dd65af01bae11b76707916701f9f0f37f40e (diff)
revert undocument in-joke halt catch fire opcode
Diffstat (limited to 'emu.c')
-rw-r--r--emu.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/emu.c b/emu.c
index fbcf362..c14fe39 100644
--- a/emu.c
+++ b/emu.c
@@ -50,6 +50,13 @@ stop(unsigned short *a)
}
void
+hcf(unsigned short *a)
+{
+ /* TODO: halt catch fire */
+ cycle += 9;
+}
+
+void
intr(unsigned short *a)
{
/* TODO */
@@ -109,6 +116,7 @@ void (*extop[nExt])(unsigned short *) = {
[NOP] = nop,
[JSR] = jsr,
[BRK] = stop,
+ [HCF] = hcf,
[INT] = intr,
[IAG] = iag,
[IAS] = ias,