summaryrefslogtreecommitdiff
path: root/home/pokemon.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/pokemon.asm')
-rw-r--r--home/pokemon.asm13
1 files changed, 9 insertions, 4 deletions
diff --git a/home/pokemon.asm b/home/pokemon.asm
index 35f12e3..6cf1eb5 100644
--- a/home/pokemon.asm
+++ b/home/pokemon.asm
@@ -1,8 +1,10 @@
INCLUDE "constants.asm"
-
+if DEBUG
SECTION "3A4B", ROM0[$3A4B]
-
+else
+SECTION "3A4B", ROM0[$3A0F]
+endc
GetMonHeader:: ; 3a4b (0:3a4b)
; copies the base stat data of a pokemon to wMonHeader
; INPUT:
@@ -20,7 +22,7 @@ GetMonHeader:: ; 3a4b (0:3a4b)
dec a
ld bc, MonBaseStatsEnd - MonBaseStats
ld hl, MonBaseStats
- call AddAMulBC
+ call AddNTimes
ld de, wMonHeader
ld bc, MonBaseStatsEnd - MonBaseStats
call CopyBytes
@@ -45,8 +47,11 @@ GetMonHeader:: ; 3a4b (0:3a4b)
pop bc
ret
-
+if DEBUG
SECTION "3AED", ROM0[$3AED]
+else
+SECTION "3AED", ROM0[$3AB1]
+endc
UncompressMonSprite:: ; 3aed (0:3aed)
; Uncompresses the front or back sprite of the specified mon