diff options
author | pikalaxalt <PikalaxALT@gmail.com> | 2016-05-31 16:16:19 -0400 |
---|---|---|
committer | pikalaxalt <PikalaxALT@gmail.com> | 2016-05-31 16:16:19 -0400 |
commit | 3ebb84d4c5cb8f37831a1c8c93c31f8d0715a6d0 (patch) | |
tree | 660e93606afa61e0fd0b1fc38517cf3a10e4a77e /engine/predefs.asm | |
parent | 439efda1ba940b010786be1186007355adf23965 (diff) |
Fix hide show constants
Diffstat (limited to 'engine/predefs.asm')
-rwxr-xr-x | engine/predefs.asm | 60 |
1 files changed, 31 insertions, 29 deletions
diff --git a/engine/predefs.asm b/engine/predefs.asm index 98a5b2d2..9a97fe95 100755 --- a/engine/predefs.asm +++ b/engine/predefs.asm @@ -4,48 +4,48 @@ GetPredefPointer: ; f67ed (3d:67ed) ; Then put the bank and address of predef ; wPredefID in [wPredefBank] and hl. - ld a,h - ld [wPredefRegisters],a - ld a,l - ld [wPredefRegisters + 1],a + ld a, h + ld [wPredefRegisters], a + ld a, l + ld [wPredefRegisters + 1], a - ld hl,wPredefRegisters + 2 - ld a,d - ld [hli],a - ld a,e - ld [hli],a + ld hl, wPredefRegisters + 2 + ld a, d + ld [hli], a + ld a, e + ld [hli], a - ld a,b - ld [hli],a - ld [hl],c + ld a, b + ld [hli], a + ld [hl], c - ld hl,PredefPointers - ld de,0 + ld hl, PredefPointers + ld de, 0 - ld a,[wPredefID] - ld e,a + ld a, [wPredefID] + ld e, a add a add e - ld e,a - jr nc,.nocarry + ld e, a + jr nc, .nocarry inc d .nocarry - add hl,de - ld d,h - ld e,l + add hl, de + ld d, h + ld e, l - ; get bank of predef routine - ld a,[de] - ld [wPredefBank],a + ; get bank of predef routine + ld a, [de] + ld [wPredefBank], a - ; get pointer + ; get pointer inc de - ld a,[de] - ld l,a + ld a, [de] + ld l, a inc de - ld a,[de] - ld h,a + ld a, [de] + ld h, a ret @@ -144,10 +144,12 @@ PredefPointers:: ; f681d (3d:681d) add_predef DoInGameTradeDialogue ; 54 initiate trade (1c:5b86) add_predef HallOfFamePC add_predef DisplayDexRating + predef_const _LeaveMapAnim predef_const EnterMapAnim dbw $1E, _LeaveMapAnim ; wrong bank dbw $1E, EnterMapAnim ; wrong bank + add_predef GetTileTwoStepsInFrontOfPlayer add_predef CheckForCollisionWhenPushingBoulder add_predef PrintStrengthTxt |