From 90fcb551ad80df900d238de1b9b1fe38000a88a8 Mon Sep 17 00:00:00 2001 From: Duncan 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(-) (limited to 'opcodes.asm') 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