mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-07 16:15:23 +13:00
Replace raw hex values with HRAM constants
To do: turn constants into labels and use ldh
This commit is contained in:
parent
35deb77113
commit
6ef36800b0
65 changed files with 311 additions and 248 deletions
|
|
@ -55,14 +55,14 @@ SilphCo7Text_51bc8:
|
|||
ld a, [hl]
|
||||
ld c, a
|
||||
xor a
|
||||
ld [$ffe0], a
|
||||
ld [hUnlockedSilphCoDoors], a
|
||||
pop hl
|
||||
.asm_51bd4
|
||||
ld a, [hli]
|
||||
cp $ff
|
||||
jr z, .asm_51bf0
|
||||
push hl
|
||||
ld hl, $ffe0
|
||||
ld hl, hUnlockedSilphCoDoors
|
||||
inc [hl]
|
||||
pop hl
|
||||
cp b
|
||||
|
|
@ -80,12 +80,12 @@ SilphCo7Text_51bc8:
|
|||
ret
|
||||
.asm_51bf0
|
||||
xor a
|
||||
ld [$ffe0], a
|
||||
ld [hUnlockedSilphCoDoors], a
|
||||
ret
|
||||
|
||||
SilphCo7Text_51bf4:
|
||||
EventFlagAddress hl, EVENT_SILPH_CO_7_UNLOCKED_DOOR1
|
||||
ld a, [$ffe0]
|
||||
ld a, [hUnlockedSilphCoDoors]
|
||||
and a
|
||||
ret z
|
||||
cp $1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue