summaryrefslogtreecommitdiff
path: root/main.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2014-06-10 23:23:55 -0700
committeryenatch <yenatch@gmail.com>2014-06-10 23:24:25 -0700
commit23f9b5d21e93f1b3c8de5e4ecf72da89265ccea8 (patch)
tree3030a3222c2c51e2d3c139215345872e80da1fdc /main.asm
parent86c1e0feea0ba487b020b801835aa19b221edb4d (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.asm10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.asm b/main.asm
index ffdeda602..ef9196b6a 100644
--- a/main.asm
+++ b/main.asm
@@ -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