From 023cfdbb051ea5184ebc7fa329db3ca43f1ca23e Mon Sep 17 00:00:00 2001 From: yenatch Date: Thu, 12 Jun 2014 18:32:42 -0700 Subject: Consolidate monster structs in wram and sram. The PartyMon struct is really the box struct with volatile variables like status added. Some other labels have been reworked. Move structs no longer have explicit labels since their location is arbitrary and usually shared. --- data/odd_eggs.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data') diff --git a/data/odd_eggs.asm b/data/odd_eggs.asm index 68062ec3b..95f64ded8 100644 --- a/data/odd_eggs.asm +++ b/data/odd_eggs.asm @@ -35,7 +35,7 @@ GiveOddEgg: ; 1fb4b6 ld hl, OddEggs ld a, OddEgg2 - OddEgg1 call AddNTimes - ld de, EnemyMoveAnimation + ld de, $c608 ld bc, $0046 call CopyBytes ld a, EGG_TICKET -- cgit v1.2.3 From 32a5f21cc7c35b2580ae2c5f3709676dd8ca8405 Mon Sep 17 00:00:00 2001 From: yenatch Date: Mon, 23 Jun 2014 12:45:30 -0700 Subject: More PartyMon labels for relative addressing. --- data/battle_tower.asm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'data') diff --git a/data/battle_tower.asm b/data/battle_tower.asm index 044f351f8..e4b79c0d4 100644 --- a/data/battle_tower.asm +++ b/data/battle_tower.asm @@ -70,9 +70,11 @@ Function1f8000: ; 1f8000 Function1f8081: ; 1f8081 ld c, $3 +.loop push bc ld a, $1 call GetSRAMBank + .asm_1f8089 ld a, [$d800] dec a @@ -150,14 +152,15 @@ Function1f8081: ; 1f8081 ld h, d ld l, e pop de - ld bc, $000b + ld bc, PKMN_NAME_LENGTH call CopyBytes pop de pop af ld [$d265], a pop bc dec c - jp nz, $4083 + jp nz, .loop + ld a, [$be51] ld [$be54], a ld a, [$be52] -- cgit v1.2.3