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/decorations.asm | |
parent | 79bd48f85c7dd1868264e290b12dad17a6e25b95 (diff) |
Prefix wram labels with w, part 2.
Diffstat (limited to 'engine/decorations.asm')
-rwxr-xr-x | engine/decorations.asm | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/engine/decorations.asm b/engine/decorations.asm index 912966a73..cf372159a 100755 --- a/engine/decorations.asm +++ b/engine/decorations.asm @@ -11,18 +11,18 @@ _KrisDecorationMenu: ; 0x2675c ld hl, .MenuDataHeader call LoadMenuDataHeader xor a - ld [Buffer5], a + ld [wBuffer5], a ld a, $1 - ld [Buffer6], a + ld [wBuffer6], a .top_loop - ld a, [Buffer6] + ld a, [wBuffer6] ld [wMenuCursorBuffer], a call .FindCategoriesWithOwnedDecos call DoNthMenu ld a, [wMenuCursorY] - ld [Buffer6], a + ld [wBuffer6], a jr c, .exit_menu - ld a, [MenuSelection] + ld a, [wMenuSelection] ld hl, .pointers call MenuJumptable jr nc, .top_loop @@ -31,7 +31,7 @@ _KrisDecorationMenu: ; 0x2675c call ExitMenu pop af ld [wWhichIndexSet], a - ld a, [Buffer5] + ld a, [wBuffer5] ld c, a ret ; 0x2679a @@ -78,14 +78,14 @@ _KrisDecorationMenu: ; 0x2675c call .FindOwndDecos ld a, 7 call .AppendToStringBuffer2 - ld hl, StringBuffer2 + ld hl, wStringBuffer2 ld de, wd002 ld bc, ITEM_NAME_LENGTH call CopyBytes ret .ClearStringBuffer2: ; 26822 (9:6822) - ld hl, StringBuffer2 + ld hl, wStringBuffer2 xor a ld [hli], a ld bc, ITEM_NAME_LENGTH - 1 @@ -94,7 +94,7 @@ _KrisDecorationMenu: ; 0x2675c ret .AppendToStringBuffer2: ; 26830 (9:6830) - ld hl, StringBuffer2 + ld hl, wStringBuffer2 inc [hl] ld e, [hl] ld d, 0 @@ -471,7 +471,7 @@ GetDecorationName: ; 269e7 ; 269f3 DecorationMenuFunction: ; 269f3 - ld a, [MenuSelection] + ld a, [wMenuSelection] push de call GetDecorationData call GetDecoName @@ -481,7 +481,7 @@ DecorationMenuFunction: ; 269f3 ; 26a02 DoDecorationAction2: ; 26a02 - ld a, [MenuSelection] + ld a, [wMenuSelection] call GetDecorationData ld de, 2 ; function 2 add hl, de @@ -545,7 +545,7 @@ INCLUDE "data/decorations/names.asm" GetDecoName: ; 26c72 ld a, [hli] ld e, [hl] - ld bc, StringBuffer2 + ld bc, wStringBuffer2 push bc ld hl, .NameFunctions rst JumpTable @@ -706,14 +706,14 @@ DecoAction_putawaybigdoll: ; 26d27 DecoAction_TrySetItUp: ; 26d2d ld a, [hl] - ld [Buffer1], a + ld [wBuffer1], a push hl call DecoAction_SetItUp jr c, .failed ld a, 1 - ld [Buffer5], a + ld [wBuffer5], a pop hl - ld a, [MenuSelection] + ld a, [wMenuSelection] ld [hl], a xor a ret @@ -726,20 +726,20 @@ DecoAction_TrySetItUp: ; 26d2d DecoAction_SetItUp: ; 26d46 ; See if there's anything of the same type already out - ld a, [Buffer1] + ld a, [wBuffer1] and a jr z, .nothingthere ; See if that item is already out ld b, a - ld a, [MenuSelection] + ld a, [wMenuSelection] cp b jr z, .alreadythere ; Put away the item that's already out, and set up the new one - ld a, [MenuSelection] - ld hl, StringBuffer4 + ld a, [wMenuSelection] + ld hl, wStringBuffer4 call GetDecorationName - ld a, [Buffer1] - ld hl, StringBuffer3 + ld a, [wBuffer1] + ld hl, wStringBuffer3 call GetDecorationName ld hl, DecoText_PutAwayAndSetUp call MenuTextBoxBackup @@ -747,8 +747,8 @@ DecoAction_SetItUp: ; 26d46 ret .nothingthere - ld a, [MenuSelection] - ld hl, StringBuffer3 + ld a, [wMenuSelection] + ld hl, wStringBuffer3 call GetDecorationName ld hl, DecoText_SetUpTheDeco call MenuTextBoxBackup @@ -765,18 +765,18 @@ DecoAction_SetItUp: ; 26d46 DecoAction_TryPutItAway: ; 26d86 ; If there is no item of that type already set, there is nothing to put away. ld a, [hl] - ld [Buffer1], a + ld [wBuffer1], a xor a ld [hl], a - ld a, [Buffer1] + ld a, [wBuffer1] and a jr z, .nothingthere ; Put it away. ld a, $1 - ld [Buffer5], a - ld a, [Buffer1] - ld [MenuSelection], a - ld hl, StringBuffer3 + ld [wBuffer5], a + ld a, [wBuffer1] + ld [wMenuSelection], a + ld hl, wStringBuffer3 call GetDecorationName ld hl, DecoText_PutAwayTheDeco call MenuTextBoxBackup @@ -797,7 +797,7 @@ DecoAction_setupornament: ; 26db3 call DecoAction_SetItUp_Ornament jr c, .cancel ld a, $1 - ld [Buffer5], a + ld [wBuffer5], a jr DecoAction_FinishUp_Ornament .cancel @@ -829,16 +829,16 @@ DecoAction_SetItUp_Ornament: ; 26de3 and a jr z, .nothingthere ld b, a - ld a, [MenuSelection] + ld a, [wMenuSelection] cp b jr z, .failed ld a, b - ld hl, StringBuffer3 + ld hl, wStringBuffer3 call GetDecorationName - ld a, [MenuSelection] - ld hl, StringBuffer4 + ld a, [wMenuSelection] + ld hl, wStringBuffer4 call GetDecorationName - ld a, [MenuSelection] + ld a, [wMenuSelection] ld [wSelectedDecoration], a call .getwhichside ld hl, DecoText_PutAwayAndSetUp @@ -847,11 +847,11 @@ DecoAction_SetItUp_Ornament: ; 26de3 ret .nothingthere - ld a, [MenuSelection] + ld a, [wMenuSelection] ld [wSelectedDecoration], a call .getwhichside - ld a, [MenuSelection] - ld hl, StringBuffer3 + ld a, [wMenuSelection] + ld hl, wStringBuffer3 call GetDecorationName ld hl, DecoText_SetUpTheDeco call MenuTextBoxBackup @@ -866,7 +866,7 @@ DecoAction_SetItUp_Ornament: ; 26de3 ; 26e33 .getwhichside ; 26e33 - ld a, [MenuSelection] + ld a, [wMenuSelection] ld b, a ld a, [wOtherDecoration] cp b @@ -886,10 +886,10 @@ DecoAction_PutItAway_Ornament: ; 26e46 ld a, [wSelectedDecoration] and a jr z, .nothingthere - ld hl, StringBuffer3 + ld hl, wStringBuffer3 call GetDecorationName ld a, $1 - ld [Buffer5], a + ld [wBuffer5], a xor a ld [wSelectedDecoration], a ld hl, DecoText_PutAwayTheDeco @@ -920,7 +920,7 @@ DecoAction_AskWhichSide: ; 26e70 ld a, [wMenuCursorY] cp 3 jr z, .nope - ld [Buffer2], a + ld [wBuffer2], a call QueryWhichSide ld a, [hl] ld [wSelectedDecoration], a @@ -937,7 +937,7 @@ DecoAction_AskWhichSide: ; 26e70 QueryWhichSide: ; 26e9a ld hl, wDecoRightOrnament ld de, wDecoLeftOrnament - ld a, [Buffer2] + ld a, [wBuffer2] cp 1 ret z push hl @@ -1009,7 +1009,7 @@ DecorationFlagAction_c: ; 26ef1 GetDecorationName_c: ; 26ef5 (9:6ef5) ld a, c call GetDecorationID - ld hl, StringBuffer1 + ld hl, wStringBuffer1 push hl call GetDecorationName pop de @@ -1161,7 +1161,7 @@ DecorationDesc_Console: ; 26fc3 DecorationDesc_OrnamentOrConsole: ; 26fc8 ld c, a - ld de, StringBuffer3 + ld de, wStringBuffer3 call GetDecorationName_c_de ld b, BANK(.OrnamentConsoleScript) ld de, .OrnamentConsoleScript @@ -1250,19 +1250,19 @@ SetDecorationTile: ; 27037 Special_ToggleDecorationsVisibility: ; 27043 ld de, EVENT_KRISS_HOUSE_2F_CONSOLE - ld hl, VariableSprites + SPRITE_CONSOLE - SPRITE_VARS + ld hl, wVariableSprites + SPRITE_CONSOLE - SPRITE_VARS ld a, [wDecoConsole] call ToggleDecorationVisibility ld de, EVENT_KRISS_HOUSE_2F_DOLL_1 - ld hl, VariableSprites + SPRITE_DOLL_1 - SPRITE_VARS + ld hl, wVariableSprites + SPRITE_DOLL_1 - SPRITE_VARS ld a, [wDecoLeftOrnament] call ToggleDecorationVisibility ld de, EVENT_KRISS_HOUSE_2F_DOLL_2 - ld hl, VariableSprites + SPRITE_DOLL_2 - SPRITE_VARS + ld hl, wVariableSprites + SPRITE_DOLL_2 - SPRITE_VARS ld a, [wDecoRightOrnament] call ToggleDecorationVisibility ld de, EVENT_KRISS_HOUSE_2F_BIG_DOLL - ld hl, VariableSprites + SPRITE_BIG_DOLL - SPRITE_VARS + ld hl, wVariableSprites + SPRITE_BIG_DOLL - SPRITE_VARS ld a, [wDecoBigDoll] call ToggleDecorationVisibility ret |