diff options
author | luckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com> | 2018-01-23 17:39:09 -0500 |
---|---|---|
committer | luckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com> | 2018-01-23 17:39:09 -0500 |
commit | a1951cefc09035e11077a433b28ec8c66b3b03db (patch) | |
tree | 4de98db5a6edb6d74192028d50893da2b764421f /engine/load_pics.asm | |
parent | 79bd48f85c7dd1868264e290b12dad17a6e25b95 (diff) |
Prefix wram labels with w, part 2.
Diffstat (limited to 'engine/load_pics.asm')
-rwxr-xr-x | engine/load_pics.asm | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/engine/load_pics.asm b/engine/load_pics.asm index 5d3becf42..0558fb7f7 100755 --- a/engine/load_pics.asm +++ b/engine/load_pics.asm @@ -1,5 +1,5 @@ GetUnownLetter: ; 51040 -; Return Unown letter in UnownLetter based on DVs at hl +; Return Unown letter in wUnownLetter based on DVs at hl ; Take the middle 2 bits of each DV and place them in order: ; atk def spd spc @@ -45,12 +45,12 @@ GetUnownLetter: ; 51040 ; Increment to get 1-26 ld a, [hQuotient + 2] inc a - ld [UnownLetter], a + ld [wUnownLetter], a ret GetMonFrontpic: ; 51077 - ld a, [CurPartySpecies] - ld [CurSpecies], a + ld a, [wCurPartySpecies] + ld [wCurSpecies], a call IsAPokemon ret c ld a, [rSVBK] @@ -61,8 +61,8 @@ GetMonFrontpic: ; 51077 ret GetAnimatedFrontpic: ; 5108b - ld a, [CurPartySpecies] - ld [CurSpecies], a + ld a, [wCurPartySpecies] + ld [wCurSpecies], a call IsAPokemon ret c ld a, [rSVBK] @@ -78,7 +78,7 @@ GetAnimatedFrontpic: ; 5108b _GetFrontpic: ; 510a5 push de call GetBaseData - ld a, [BasePicSize] + ld a, [wBasePicSize] and $f ld b, a push bc @@ -105,15 +105,15 @@ _GetFrontpic: ; 510a5 GetFrontpicPointer: ; 510d7 GLOBAL PokemonPicPointers, UnownPicPointers - ld a, [CurPartySpecies] + ld a, [wCurPartySpecies] cp UNOWN jr z, .unown - ld a, [CurPartySpecies] + ld a, [wCurPartySpecies] ld d, BANK(PokemonPicPointers) jr .ok .unown - ld a, [UnownLetter] + ld a, [wUnownLetter] ld d, BANK(UnownPicPointers) .ok @@ -144,8 +144,8 @@ GetAnimatedEnemyFrontpic: ; 51103 ld de, 7 * 7 tiles add hl, de push hl - ld a, BANK(BasePicSize) - ld hl, BasePicSize + ld a, BANK(wBasePicSize) + ld hl, wBasePicSize call GetFarWRAMByte pop hl and $f @@ -196,13 +196,13 @@ LoadFrontpicTiles: ; 5114f ret GetMonBackpic: ; 5116c - ld a, [CurPartySpecies] + ld a, [wCurPartySpecies] call IsAPokemon ret c - ld a, [CurPartySpecies] + ld a, [wCurPartySpecies] ld b, a - ld a, [UnownLetter] + ld a, [wUnownLetter] ld c, a ld a, [rSVBK] push af @@ -311,7 +311,7 @@ Function511ec: ; 511ec ret GetTrainerPic: ; 5120d - ld a, [TrainerClass] + ld a, [wTrainerClass] and a ret z cp NUM_TRAINER_CLASSES @@ -320,7 +320,7 @@ GetTrainerPic: ; 5120d xor a ld [hBGMapMode], a ld hl, TrainerPicPointers - ld a, [TrainerClass] + ld a, [wTrainerClass] dec a ld bc, 3 call AddNTimes |