aboutsummaryrefslogtreecommitdiff
path: root/emu.c
diff options
context:
space:
mode:
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,