From 272d8ebb5c0f02299eeff6782f09ea6ec92b92d6 Mon Sep 17 00:00:00 2001 From: Astrid Smith Date: Fri, 10 Sep 2010 19:52:37 -0700 Subject: Fix to make PUSHW use d2 instead of d0 --- opcodes.asm | 8 ++++---- 1 file 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 -- cgit v1.2.3