diff options
Diffstat (limited to 'home')
-rw-r--r-- | home/farcall.asm | 8 | ||||
-rw-r--r-- | home/map.asm | 4 | ||||
-rw-r--r-- | home/menu.asm | 8 | ||||
-rw-r--r-- | home/names.asm | 30 | ||||
-rw-r--r-- | home/pokemon.asm | 4 | ||||
-rw-r--r-- | home/predef.asm | 14 | ||||
-rw-r--r-- | home/random.asm | 4 | ||||
-rw-r--r-- | home/sprite_anims.asm | 8 | ||||
-rw-r--r-- | home/video.asm | 6 |
9 files changed, 43 insertions, 43 deletions
diff --git a/home/farcall.asm b/home/farcall.asm index 31f62916..b3dac5bf 100644 --- a/home/farcall.asm +++ b/home/farcall.asm @@ -11,9 +11,9 @@ FarCall_hl:: ; We want to retain the contents of f. ; To do this, we can pop to bc instead of af. ld a, b - ld [wFarCallBCBuffer], a + ld [wFarCallBC], a ld a, c - ld [wFarCallBCBuffer + 1], a + ld [wFarCallBC + 1], a ; Restore the working bank. pop bc @@ -21,9 +21,9 @@ FarCall_hl:: rst Bankswitch ; Restore the contents of bc. - ld a, [wFarCallBCBuffer] + ld a, [wFarCallBC] ld b, a - ld a, [wFarCallBCBuffer + 1] + ld a, [wFarCallBC + 1] ld c, a ret diff --git a/home/map.asm b/home/map.asm index 4146eaf0..788312db 100644 --- a/home/map.asm +++ b/home/map.asm @@ -1159,7 +1159,7 @@ BackupBGMapColumn:: ret UpdateBGMapRow:: - ld hl, wBGMapBufferPtrs + ld hl, wBGMapBufferPointers push de call .iteration pop de @@ -1190,7 +1190,7 @@ UpdateBGMapRow:: ret UpdateBGMapColumn:: - ld hl, wBGMapBufferPtrs + ld hl, wBGMapBufferPointers ld c, SCREEN_HEIGHT .loop ld a, e diff --git a/home/menu.asm b/home/menu.asm index 91866692..4395ee34 100644 --- a/home/menu.asm +++ b/home/menu.asm @@ -285,8 +285,8 @@ CopyMenuHeader:: call CopyBytes ret -StoreTo_wMenuCursorBuffer:: - ld [wMenuCursorBuffer], a +StoreMenuCursorPosition:: + ld [wMenuCursorPosition], a ret MenuTextbox:: @@ -640,7 +640,7 @@ ContinueGettingMenuJoypad: ld a, [hl] ld [wMenuSelection], a ld a, [wMenuCursorY] - ld [wMenuCursorBuffer], a + ld [wMenuCursorPosition], a and a ret @@ -789,7 +789,7 @@ _2DMenu:: pop bc ld a, b rst Bankswitch - ld a, [wMenuCursorBuffer] + ld a, [wMenuCursorPosition] ret ResetBGWindow:: diff --git a/home/names.asm b/home/names.asm index 58cc0fbb..4e8e1224 100644 --- a/home/names.asm +++ b/home/names.asm @@ -10,7 +10,7 @@ NamesPointers:: dbw 4, MoveDescriptions ; MOVE_DESC_NAME_BROKEN (wrong bank) GetName:: -; Return name wCurSpecies from name list wNamedObjectTypeBuffer in wStringBuffer1. +; Return name wCurSpecies from name list wNamedObjectType in wStringBuffer1. ldh a, [hROMBank] push af @@ -18,12 +18,12 @@ GetName:: push bc push de - ld a, [wNamedObjectTypeBuffer] + ld a, [wNamedObjectType] cp MON_NAME jr nz, .NotPokeName ld a, [wCurSpecies] - ld [wNamedObjectIndexBuffer], a + ld [wNamedObjectIndex], a call GetPokemonName ld hl, MON_NAME_LENGTH add hl, de @@ -32,7 +32,7 @@ GetName:: jr .done .NotPokeName: - ld a, [wNamedObjectTypeBuffer] + ld a, [wNamedObjectType] dec a ld e, a ld d, 0 @@ -110,7 +110,7 @@ GetBasePokemonName:: ret GetPokemonName:: -; Get Pokemon name for wNamedObjectIndexBuffer. +; Get Pokemon name for wNamedObjectIndex. ldh a, [hROMBank] push af @@ -119,7 +119,7 @@ GetPokemonName:: rst Bankswitch ; Each name is ten characters - ld a, [wNamedObjectIndexBuffer] + ld a, [wNamedObjectIndex] dec a ld hl, PokemonNames ld e, a @@ -144,18 +144,18 @@ endr ret GetItemName:: -; Get item name for wNamedObjectIndexBuffer. +; Get item name for wNamedObjectIndex. push hl push bc - ld a, [wNamedObjectIndexBuffer] + ld a, [wNamedObjectIndex] cp TM01 jr nc, .TM ld [wCurSpecies], a ld a, ITEM_NAME - ld [wNamedObjectTypeBuffer], a + ld [wNamedObjectType], a call GetName jr .Copied .TM: @@ -167,12 +167,12 @@ GetItemName:: ret GetTMHMName:: -; Get TM/HM name for item wNamedObjectIndexBuffer. +; Get TM/HM name for item wNamedObjectIndex. push hl push de push bc - ld a, [wNamedObjectIndexBuffer] + ld a, [wNamedObjectIndex] push af ; TM/HM prefix @@ -194,7 +194,7 @@ GetTMHMName:: ; TM/HM number push de - ld a, [wNamedObjectIndexBuffer] + ld a, [wNamedObjectIndex] ld c, a callfar GetTMHMNumber pop de @@ -232,7 +232,7 @@ GetTMHMName:: ld [de], a pop af - ld [wNamedObjectIndexBuffer], a + ld [wNamedObjectIndex], a pop bc pop de pop hl @@ -254,9 +254,9 @@ GetMoveName:: push hl ld a, MOVE_NAME - ld [wNamedObjectTypeBuffer], a + ld [wNamedObjectType], a - ld a, [wNamedObjectIndexBuffer] ; move id + ld a, [wNamedObjectIndex] ; move id ld [wCurSpecies], a call GetName diff --git a/home/pokemon.asm b/home/pokemon.asm index 29af1cdd..eb77d387 100644 --- a/home/pokemon.asm +++ b/home/pokemon.asm @@ -199,8 +199,8 @@ PrintLevel_Force3Digits:: ld c, 3 Print8BitNumLeftAlign:: - ld [wDeciramBuffer], a - ld de, wDeciramBuffer + ld [wTextDecimalByte], a + ld de, wTextDecimalByte ld b, PRINTNUM_LEFTALIGN | 1 jp PrintNum diff --git a/home/predef.asm b/home/predef.asm index 10550d12..eb9a2f9f 100644 --- a/home/predef.asm +++ b/home/predef.asm @@ -8,7 +8,7 @@ Predef:: ld a, BANK(GetPredefPointer) rst Bankswitch - call GetPredefPointer ; stores hl in wPredefTemp + call GetPredefPointer ; stores hl in wPredefHL ; Switch to the new function's bank rst Bankswitch @@ -27,9 +27,9 @@ Predef:: push hl ; Get hl back - ld a, [wPredefTemp] + ld a, [wPredefHL] ld h, a - ld a, [wPredefTemp + 1] + ld a, [wPredefHL + 1] ld l, a ret @@ -37,16 +37,16 @@ Predef:: ; Clean up after the Predef call ld a, h - ld [wPredefTemp], a + ld [wPredefHL], a ld a, l - ld [wPredefTemp + 1], a + ld [wPredefHL + 1], a pop hl ld a, h rst Bankswitch - ld a, [wPredefTemp] + ld a, [wPredefHL] ld h, a - ld a, [wPredefTemp + 1] + ld a, [wPredefHL + 1] ld l, a ret diff --git a/home/random.asm b/home/random.asm index 9d62b9b6..06f554b3 100644 --- a/home/random.asm +++ b/home/random.asm @@ -41,10 +41,10 @@ BattleRandom:: call _BattleRandom - ld [wPredefTemp + 1], a + ld [wPredefHL + 1], a pop af rst Bankswitch - ld a, [wPredefTemp + 1] + ld a, [wPredefHL + 1] ret RandomRange:: diff --git a/home/sprite_anims.asm b/home/sprite_anims.asm index 67f36fe2..0ba04d42 100644 --- a/home/sprite_anims.asm +++ b/home/sprite_anims.asm @@ -1,11 +1,11 @@ InitSpriteAnimStruct:: - ld [wSpriteAnimIDBuffer], a + ld [wSpriteAnimID], a ldh a, [hROMBank] push af ld a, BANK(_InitSpriteAnimStruct) rst Bankswitch - ld a, [wSpriteAnimIDBuffer] + ld a, [wSpriteAnimID] call _InitSpriteAnimStruct @@ -15,13 +15,13 @@ InitSpriteAnimStruct:: ret ReinitSpriteAnimFrame:: ; unreferenced - ld [wSpriteAnimIDBuffer], a + ld [wSpriteAnimID], a ldh a, [hROMBank] push af ld a, BANK(_ReinitSpriteAnimFrame) rst Bankswitch - ld a, [wSpriteAnimIDBuffer] + ld a, [wSpriteAnimID] call _ReinitSpriteAnimFrame diff --git a/home/video.asm b/home/video.asm index a9592558..12f7ee04 100644 --- a/home/video.asm +++ b/home/video.asm @@ -1,6 +1,6 @@ UpdateBGMapBuffer:: ; Copy [hBGMapTileCount] 16x8 tiles from wBGMapBuffer -; to bg map addresses in wBGMapBufferPtrs. +; to bg map addresses in wBGMapBufferPointers. ; [hBGMapTileCount] must be even since this is done in pairs. @@ -10,9 +10,9 @@ UpdateBGMapBuffer:: and a ret z -; Relocate the stack pointer to wBGMapBufferPtrs +; Relocate the stack pointer to wBGMapBufferPointers ld [hSPBuffer], sp - ld hl, wBGMapBufferPtrs + ld hl, wBGMapBufferPointers ld sp, hl ; We can now pop the addresses of affected spots on the BG Map |