diff options
| author | Astrid Smith | 2010-09-10 19:52:37 -0700 |
|---|---|---|
| committer | Astrid Smith | 2010-09-10 19:52:37 -0700 |
| commit | 272d8ebb5c0f02299eeff6782f09ea6ec92b92d6 (patch) | |
| tree | 233f4d4947dba739a17a34c5e6d7a32d6741c6fb | |
| parent | e81ab31cf7cfabce9f5d235066c471761c647ff2 (diff) | |
Fix to make PUSHW use d2 instead of d0
| -rw-r--r-- | opcodes.asm | 8 |
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 |
