You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
More splitting of main.asm; remove unneeded rept 2
This commit is contained in:
@@ -142,9 +142,8 @@ _DepositPKMN: ; e2391 (38:6391)
|
||||
ld e, a
|
||||
ld d, 0
|
||||
ld hl, BillsPCDepositJumptable
|
||||
rept 2
|
||||
add hl, de
|
||||
endr
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
ld l, a
|
||||
@@ -411,9 +410,8 @@ BillsPC_Withdraw: ; e2675 (38:6675)
|
||||
ld e, a
|
||||
ld d, 0
|
||||
ld hl, .dw
|
||||
rept 2
|
||||
add hl, de
|
||||
endr
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
ld l, a
|
||||
@@ -675,9 +673,8 @@ _MovePKMNWithoutMail: ; e2759
|
||||
ld e, a
|
||||
ld d, 0
|
||||
ld hl, .Jumptable2
|
||||
rept 2
|
||||
add hl, de
|
||||
endr
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
ld l, a
|
||||
@@ -2010,9 +2007,8 @@ MovePKMNWitoutMail_InsertMon: ; e31e7
|
||||
|
||||
.moving_to_box
|
||||
ld hl, .Jumptable
|
||||
rept 2
|
||||
add hl, bc
|
||||
endr
|
||||
add hl, bc
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
ld l, a
|
||||
@@ -2143,7 +2139,7 @@ endr
|
||||
ld hl, wBillsPC_ScrollPosition
|
||||
add [hl]
|
||||
ld [CurPartyMon], a
|
||||
callba Function51322
|
||||
callba InsertPokemonIntoBox
|
||||
ret
|
||||
; e3316
|
||||
|
||||
@@ -2172,7 +2168,7 @@ endr
|
||||
ld hl, wBillsPC_ScrollPosition
|
||||
add [hl]
|
||||
ld [CurPartyMon], a
|
||||
callba Function5138b
|
||||
callba InsertPokemonIntoParty
|
||||
ret
|
||||
; e3357
|
||||
|
||||
@@ -2256,9 +2252,8 @@ BillsPC_ApplyPalettes: ; e33d0 (38:73d0)
|
||||
BillsPC_Jumptable: ; e33df (38:73df)
|
||||
ld e, a
|
||||
ld d, $0
|
||||
rept 2
|
||||
add hl, de
|
||||
endr
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
ld l, a
|
||||
|
||||
Reference in New Issue
Block a user