diff options
| author | Astrid Smith | 2010-06-11 20:28:50 -0700 |
|---|---|---|
| committer | Astrid Smith | 2010-06-11 20:28:50 -0700 |
| commit | cb2f0f47b542a5829052908d09a68e94b930c967 (patch) | |
| tree | 23ff092949af73be8b08198854679bbe6147ee64 | |
| parent | 17509fc3072399b2e5d806305235ca4ae65acd24 (diff) | |
PUSHW corrected
| -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 |
