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 /home/predef.asm | |
parent | 79bd48f85c7dd1868264e290b12dad17a6e25b95 (diff) |
Prefix wram labels with w, part 2.
Diffstat (limited to 'home/predef.asm')
-rw-r--r-- | home/predef.asm | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/home/predef.asm b/home/predef.asm index f99e85891..f03bdaa94 100644 --- a/home/predef.asm +++ b/home/predef.asm @@ -2,13 +2,13 @@ Predef:: ; 2d83 ; Call predefined function a. ; Preserves bc, de, hl and f. - ld [PredefID], a + ld [wPredefID], a ld a, [hROMBank] push af ld a, BANK(GetPredefPointer) rst Bankswitch - call GetPredefPointer ; stores hl in PredefTemp + call GetPredefPointer ; stores hl in wPredefTemp ; Switch to the new function's bank rst Bankswitch @@ -20,16 +20,16 @@ Predef:: ; 2d83 push hl ; Call the Predef function - ld a, [PredefAddress] + ld a, [wPredefAddress] ld h, a - ld a, [PredefAddress + 1] + ld a, [wPredefAddress + 1] ld l, a push hl ; Get hl back - ld a, [PredefTemp] + ld a, [wPredefTemp] ld h, a - ld a, [PredefTemp + 1] + ld a, [wPredefTemp + 1] ld l, a ret @@ -37,17 +37,17 @@ Predef:: ; 2d83 ; Clean up after the Predef call ld a, h - ld [PredefTemp], a + ld [wPredefTemp], a ld a, l - ld [PredefTemp+1], a + ld [wPredefTemp+1], a pop hl ld a, h rst Bankswitch - ld a, [PredefTemp] + ld a, [wPredefTemp] ld h, a - ld a, [PredefTemp + 1] + ld a, [wPredefTemp + 1] ld l, a ret ; 2dba |