diff options
| author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-11-05 10:51:02 -0500 |
|---|---|---|
| committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-11-05 10:51:02 -0500 |
| commit | 6fe56af2cd63abaf30040cc5031e3db5358cf638 (patch) | |
| tree | b024aa8480912ebf2667184068466ee7f354012c /home/pokemon.asm | |
| parent | Merge pull request #59 from Rangi42/master (diff) | |
| download | pokeyellow-6fe56af2cd63abaf30040cc5031e3db5358cf638.tar.gz pokeyellow-6fe56af2cd63abaf30040cc5031e3db5358cf638.tar.xz pokeyellow-6fe56af2cd63abaf30040cc5031e3db5358cf638.zip | |
Organize home and macro code
Diffstat (limited to 'home/pokemon.asm')
| -rw-r--r-- | home/pokemon.asm | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/home/pokemon.asm b/home/pokemon.asm index 3e08906f..8e304fd3 100644 --- a/home/pokemon.asm +++ b/home/pokemon.asm @@ -5,7 +5,6 @@ DrawHPBar:: push hl push de - ;push bc ; Left ld a, $71 ; "HP:" @@ -61,7 +60,6 @@ DrawHPBar:: add e ld [hl], a .done - ;pop bc pop de pop hl ret @@ -124,7 +122,8 @@ LoadFrontSpriteByMonIndex:: pop hl ldh a, [hLoadedROMBank] push af - switchbank CopyUncompressedPicToHL + ld a, BANK(CopyUncompressedPicToHL) + call BankswitchCommon xor a ldh [hStartTileID], a call CopyUncompressedPicToHL @@ -355,7 +354,7 @@ PrintStatusCondition:: ret PrintStatusConditionNotFainted:: - homecall_jump_sf PrintStatusAilment + homejp_sf PrintStatusAilment ; function to print pokemon level, leaving off the ":L" if the level is at least 100 ; INPUT: @@ -404,7 +403,8 @@ GetwMoves:: GetMonHeader:: ldh a, [hLoadedROMBank] push af - switchbank BaseStats + ld a, BANK(BaseStats) + call BankswitchCommon push bc push de push hl @@ -423,8 +423,6 @@ GetMonHeader:: ld b, $77 ; size of Aerodactyl fossil sprite cp FOSSIL_AERODACTYL ; Aerodactyl fossil jr z, .specialID - ;cp MEW - ;jr z, .mew predef IndexToPokedex ; convert pokemon ID in [wd11e] to pokedex number ld a, [wd11e] dec a |
