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 /main.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 'main.asm')
-rw-r--r-- | main.asm | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -5316,7 +5316,7 @@ Function6520: ; 6520 push de dec a ld hl, Moves + MOVE_PP - ld bc, Move2 - Move1 + ld bc, MOVE_LENGTH call AddNTimes ld a, BANK(Moves) call GetFarByte @@ -12637,7 +12637,7 @@ FillPP: ; da6d push de push bc ld hl, Moves - ld bc, Move2 - Move1 + ld bc, MOVE_LENGTH call AddNTimes ld de, StringBuffer1 ld a, BANK(Moves) @@ -20861,7 +20861,7 @@ Function13256: ; 13256 ld a, [CurSpecies] dec a ld hl, Moves + MOVE_POWER - ld bc, Move2 - Move1 + ld bc, MOVE_LENGTH call AddNTimes ld a, BANK(Moves) call GetFarByte @@ -44611,7 +44611,7 @@ Function39806: ; 39806 push bc dec a ld hl, Moves + MOVE_PP - ld bc, Move2 - Move1 + ld bc, MOVE_LENGTH call AddNTimes ld a, BANK(Moves) call GetFarByte @@ -48143,7 +48143,7 @@ FillMoves: ; 424e1 push hl dec a ld hl, Moves + MOVE_PP - ld bc, Move2 - Move1 + ld bc, MOVE_LENGTH call AddNTimes ld a, BANK(Moves) call GetFarByte |