summaryrefslogtreecommitdiff
path: root/scripts/silphco5.asm
diff options
context:
space:
mode:
authordannye <corrnondacqb@yahoo.com>2015-08-05 16:20:29 -0500
committerdannye <corrnondacqb@yahoo.com>2015-08-05 16:25:58 -0500
commitf8a9c37a0019eb085c22c6e3ae53b16ff0cd4f6a (patch)
tree53ef4ec4b7ab591f1ba98322405c6b1e645a21e2 /scripts/silphco5.asm
parent891627d4ba193dd839e03e9e30f1e492e57eac9f (diff)
Use more lb
and other clean up
Diffstat (limited to 'scripts/silphco5.asm')
-rwxr-xr-xscripts/silphco5.asm15
1 files changed, 9 insertions, 6 deletions
diff --git a/scripts/silphco5.asm b/scripts/silphco5.asm
index d6f35993..7380f98f 100755
--- a/scripts/silphco5.asm
+++ b/scripts/silphco5.asm
@@ -13,7 +13,7 @@ SilphCo5Script_19f4d: ; 19f4d (6:5f4d)
bit 5, [hl]
res 5, [hl]
ret z
- ld hl, SilphCo5Coords
+ ld hl, SilphCo5GateCoords
call SilphCo4Script_19d5d
call SilphCo5Script_19f9e
CheckEvent EVENT_SILPH_CO_5_UNLOCKED_DOOR1
@@ -21,7 +21,7 @@ SilphCo5Script_19f4d: ; 19f4d (6:5f4d)
push af
ld a, $5f
ld [wNewTileBlockID], a
- ld bc, $0203
+ lb bc, 2, 3
predef ReplaceTileBlock
pop af
.asm_19f74
@@ -30,7 +30,7 @@ SilphCo5Script_19f4d: ; 19f4d (6:5f4d)
push af
ld a, $5f
ld [wNewTileBlockID], a
- ld bc, $0603
+ lb bc, 6, 3
predef ReplaceTileBlock
pop af
.asm_19f87
@@ -38,11 +38,14 @@ SilphCo5Script_19f4d: ; 19f4d (6:5f4d)
ret nz
ld a, $5f
ld [wNewTileBlockID], a
- ld bc, $0507
+ lb bc, 5, 7
predef_jump ReplaceTileBlock
-SilphCo5Coords: ; 19f97 (6:5f97)
- db $02, $03, $06, $03, $05, $07, $ff
+SilphCo5GateCoords: ; 19f97 (6:5f97)
+ db $02,$03
+ db $06,$03
+ db $05,$07
+ db $FF
SilphCo5Script_19f9e: ; 19f9e (6:5f9e)
EventFlagAddress hl, EVENT_SILPH_CO_5_UNLOCKED_DOOR1