summaryrefslogtreecommitdiff
path: root/main.asm
diff options
context:
space:
mode:
authorAstrid Smith2010-06-11 00:18:14 -0700
committerAstrid Smith2010-06-11 00:18:14 -0700
commitd35848eb0acdc6ef8a523aa56b6d9ecadabbdb86 (patch)
tree0282c3b1ae810bb0d0b6a467f3def9c9b3a36e86 /main.asm
parent5af91428c458d590d494c9b86c7ca0c8c57205a6 (diff)
RET instruction added
Diffstat (limited to 'main.asm')
-rw-r--r--main.asm12
1 files changed, 12 insertions, 0 deletions
diff --git a/main.asm b/main.asm
index 2f67427..0c571fc 100644
--- a/main.asm
+++ b/main.asm
@@ -1756,6 +1756,7 @@ emu_op_c0:
;; PCh <- (SP+1)
;; SP <- (SP+2)
bsr f_norm_z
+ ;; SPEED inline RET
beq emu_op_c9 ; RET
DONE
@@ -1803,6 +1804,17 @@ emu_op_c8:
START
emu_op_c9:
;; RET
+ ;; PCl <- (SP)
+ ;; PCh <- (SP+1)
+ ;; SP <- (SP+2)
+ swap d2
+ FETCHB d2,d1
+ addq.b #1,emu_sp
+ FETCHB d2,d1
+ addq.b #1,emu_sp
+ swap d2
+ move.w d1,d2
+ DONE
START
emu_op_ca: