diff options
author | yenatch <yenatch@gmail.com> | 2014-08-07 21:17:44 -0700 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2014-08-07 21:17:44 -0700 |
commit | 1cf79b6f15761ec95ba1b0f9d6d83781c4240612 (patch) | |
tree | 705b9c16082db98d1badd90ad214e433b95f9256 /home.asm | |
parent | 8dd46620bc7e17c4c582a391fb95c9e29ef58576 (diff) |
Fix static banks passed into GetName.
This appears to be the only other use of wPredefBank.
Chances are there are more uncaught banks. Known cases are marked as "hardcoded" or similar.
Diffstat (limited to 'home.asm')
-rw-r--r-- | home.asm | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2044,7 +2044,7 @@ DisplayListMenuIDLoop:: ; 2c53 (0:2c53) .skipGettingQuantity ld a,[wcf91] ld [wd0b5],a - ld a,$01 + ld a,BANK(ItemNames) ld [wPredefBank],a call GetName jr .storeChosenEntry @@ -3782,7 +3782,7 @@ GetName:: ; 376b (0:376b) ; returns pointer to name in de ld a,[wd0b5] ld [wd11e],a - cp a,$C4 ;it's TM/HM + cp HM_01 jp nc,GetMachineName ld a,[H_LOADEDROMBANK] push af @@ -3858,8 +3858,8 @@ GetItemPrice:: ; 37df (0:37df) ld a, [H_LOADEDROMBANK] push af ld a, [wListMenuID] ; wListMenuID - cp $1 - ld a, $1 ; hardcoded Bank + cp MOVESLISTMENU + ld a, BANK(ItemPrices) jr nz, .asm_37ed ld a, $f ; hardcoded Bank .asm_37ed |