diff options
| author | Duncan Smith | 2010-06-11 20:28:50 -0700 |
|---|---|---|
| committer | Duncan Smith | 2010-06-11 20:28:50 -0700 |
| commit | 5271d896e9e1ff561096255cd2cd36f6d4abfff3 (patch) | |
| tree | 58a392a756f5cdc6cb5795d526a393446cb58687 /main.asm | |
| parent | acb200c9c48c91f098a9d7b0b8775c16bcd9b7ef (diff) | |
PUSHW corrected
Diffstat (limited to 'main.asm')
| -rw-r--r-- | main.asm | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -84,15 +84,22 @@ PUSHW MACRO subq.w #1,d1 move.w d2,d1 bsr deref - move.b \1,(a0) ; \1_l + LOHI \1 + move.b \1,(a0) ; high byte + HILO \1 + subq.w #1,d1 + move.b \1,(a0) ; low byte bsr deref - move.b \1,(a0) ; \1_h subq.w #2,d2 ENDM ;; Pop the word at the top of stack d2 (pre-swapped) into \1. ;; Destroys d0, a0. + + ;; \1_h <- (SP+1) + ;; \1_l <- (SP) + ;; SP <- SP + 2 POPW MACRO move.b d2,d1 bsr deref ; low byte |
