summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAstrid Smith2010-06-20 17:05:45 -0700
committerAstrid Smith2010-06-20 17:05:45 -0700
commit782319608249c0c4ed8a22a3a27fcc729cb33156 (patch)
treebae2a74982a19725a181dd360653819af78b9e75
parentdf1455c1313f43c12a71ab54251617123e8aa084 (diff)
Slightly reworked POPW
-rw-r--r--main.asm6
1 files changed, 2 insertions, 4 deletions
diff --git a/main.asm b/main.asm
index 08232c6..a2552ef 100644
--- a/main.asm
+++ b/main.asm
@@ -109,13 +109,11 @@ PUSHW MACRO
;; \1_h <- (SP+1)
;; \1_l <- (SP)
;; SP <- SP + 2
-; XXX why not (a4)+ both times, and then get rid of addq.w #2,a4 ?
POPW MACRO
- move.b (a4),\1
+ move.b (a4)+,\1
LOHI \1 ;slow
- move.b (a4),\1 ; high byte
+ move.b (a4)+,\1 ; high byte
HILO \1 ;slow
- addq.w #2,a4
ENDM
;; == Immediate Memory Macros ==