summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Smith2010-09-10 19:52:37 -0700
committerDuncan Smith2010-09-10 19:52:37 -0700
commit90fcb551ad80df900d238de1b9b1fe38000a88a8 (patch)
treecbaa0c1514a7d8f3913eb964e602566f150536bf
parentbb5e929390e4f1e91713ebc7b56a10ff8b44551b (diff)
Fix to make PUSHW use d2 instead of d0
-rw-r--r--opcodes.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/opcodes.asm b/opcodes.asm
index e49a193..3ab0ff4 100644
--- a/opcodes.asm
+++ b/opcodes.asm
@@ -52,15 +52,15 @@ PUTW MACRO ;
;; Push the word in \1 (register) using stack register a4.
;; Sadly, I can't trust the stack register to be aligned.
- ;; Destroys d0.
+ ;; Destroys d2.
;; (SP-2) <- \1_l
;; (SP-1) <- \1_h
;; SP <- SP - 2
PUSHW MACRO
- move.w \1,d0
- LOHI d0 ;slow
- move.b d0,-(a4) ; high byte
+ move.w \1,d2
+ LOHI d2 ;slow
+ move.b d2,-(a4) ; high byte
move.b \1,-(a4) ; low byte
ENDM