index
:
dcpu16.git
DCPU16_1_1
master
DCPU-16 Interpreter
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
emu.c
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
(limited to 'emu.c')
-rw-r--r--
emu.c
2
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;
}