aboutsummaryrefslogtreecommitdiff
path: root/emu.c
diff options
context:
space:
mode:
Diffstat (limited to 'emu.c')
-rw-r--r--emu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/emu.c b/emu.c
index c14fe39..5c6d1b9 100644
--- a/emu.c
+++ b/emu.c
@@ -81,6 +81,8 @@ void
rfi(unsigned short *a)
{
/* TODO */
+ *a = mem[reg[SP]++];
+ reg[PC] = mem[reg[SP]++];
cycle += 3;
}