diff options
author | yenatch <yenatch@gmail.com> | 2014-06-10 23:23:55 -0700 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2014-06-10 23:24:25 -0700 |
commit | 23f9b5d21e93f1b3c8de5e4ecf72da89265ccea8 (patch) | |
tree | 3030a3222c2c51e2d3c139215345872e80da1fdc /text/types.asm | |
parent | 86c1e0feea0ba487b020b801835aa19b221edb4d (diff) |
Use constants for move struct positioning.
This eliminates the need for arbitrary move labels like Move2 and Move1 that don't have anything to do with their respective moves.
Diffstat (limited to 'text/types.asm')
-rw-r--r-- | text/types.asm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/text/types.asm b/text/types.asm index 0addaaf6e..c3076fb10 100644 --- a/text/types.asm +++ b/text/types.asm @@ -42,13 +42,13 @@ PrintMoveType: ; 5093a push hl ld a, b dec a - ld bc, Move2 - Move1 + ld bc, MOVE_LENGTH ld hl, Moves call AddNTimes ld de, StringBuffer1 ld a, BANK(Moves) call FarCopyBytes - ld a, [StringBuffer1 + PlayerMoveType - PlayerMoveStruct] + ld a, [StringBuffer1 + MOVE_TYPE] pop hl ld b, a |