mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-22 15:12:18 +13:00
Move all code out of home.asm into home/
This results in 64 home/*.asm files, comparable to pokecrystal's 57.
This commit is contained in:
parent
51ac538c25
commit
bbf2f51a02
35 changed files with 1754 additions and 1758 deletions
|
|
@ -1,3 +1,18 @@
|
|||
; Copies [hl, bc) to [de, de + bc - hl).
|
||||
; In other words, the source data is from hl up to but not including bc,
|
||||
; and the destination is de.
|
||||
CopyDataUntil::
|
||||
ld a, [hli]
|
||||
ld [de], a
|
||||
inc de
|
||||
ld a, h
|
||||
cp b
|
||||
jr nz, CopyDataUntil
|
||||
ld a, l
|
||||
cp c
|
||||
jr nz, CopyDataUntil
|
||||
ret
|
||||
|
||||
; Function to remove a pokemon from the party or the current box.
|
||||
; wWhichPokemon determines the pokemon.
|
||||
; [wRemoveMonFromBox] == 0 specifies the party.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue