More splitting of main.asm; remove unneeded rept 2

This commit is contained in:
pikalaxalt
2016-05-04 11:46:23 -04:00
parent 82f1534925
commit 3713b71d9e
107 changed files with 1222 additions and 1610 deletions

View File

@@ -253,9 +253,8 @@ ParkBall: ; e8a2
jr z, .skip_or_return_from_ball_fn
cp c
jr z, .call_ball_function
rept 2
inc hl
endr
inc hl
jr .get_multiplier_loop
.call_ball_function
@@ -288,9 +287,8 @@ endr
ld h, d
ld l, e
rept 2
add hl, de
endr
add hl, de
ld d, h
ld e, l
ld a, d
@@ -805,9 +803,8 @@ HeavyBallMultiplier:
dec a
ld e, a
ld d, 0
rept 2
add hl, de
endr
add hl, de
ld a, BANK(PokedexDataPointerTable)
call GetFarHalfword
@@ -820,9 +817,8 @@ endr
call GetPokedexEntryBank
push bc
rept 2
inc hl
endr
inc hl
call GetFarHalfword
srl h
@@ -868,9 +864,8 @@ endr
ld a, c
cp [hl]
jr c, .heavymon
rept 2
inc hl
endr
inc hl
jr .lookup
.heavymon
@@ -929,9 +924,8 @@ GLOBAL EvosAttacksPointers
ld c, a
ld b, 0
ld hl, EvosAttacksPointers
rept 2
add hl, bc
endr
add hl, bc
ld a, BANK(EvosAttacksPointers)
call GetFarHalfword
pop bc
@@ -2127,9 +2121,8 @@ GetHealingItemAmount: ; f395 (3:7395)
jr z, .NotFound
cp d
jr z, .done
rept 2
inc hl
endr
inc hl
jr .next
.NotFound:
@@ -2335,9 +2328,8 @@ XSpecial: ; f4c5
.loop
cp [hl]
jr z, .got_it
rept 2
inc hl
endr
inc hl
jr .loop
.got_it