diff options
author | dannye <corrnondacqb@yahoo.com> | 2015-08-05 16:20:29 -0500 |
---|---|---|
committer | dannye <corrnondacqb@yahoo.com> | 2015-08-05 16:25:58 -0500 |
commit | f8a9c37a0019eb085c22c6e3ae53b16ff0cd4f6a (patch) | |
tree | 53ef4ec4b7ab591f1ba98322405c6b1e645a21e2 /scripts/silphco4.asm | |
parent | 891627d4ba193dd839e03e9e30f1e492e57eac9f (diff) |
Use more lb
and other clean up
Diffstat (limited to 'scripts/silphco4.asm')
-rwxr-xr-x | scripts/silphco4.asm | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/silphco4.asm b/scripts/silphco4.asm index 0ea2c8c8..0dad6f6b 100755 --- a/scripts/silphco4.asm +++ b/scripts/silphco4.asm @@ -13,7 +13,7 @@ SilphCo4Script_19d21: ; 19d21 (6:5d21) bit 5, [hl] res 5, [hl] ret z - ld hl, SilphCo4Data19d58 + ld hl, SilphCo4GateCoords call SilphCo4Script_19d5d call SilphCo4Script_19d89 CheckEvent EVENT_SILPH_CO_4_UNLOCKED_DOOR1 @@ -21,7 +21,7 @@ SilphCo4Script_19d21: ; 19d21 (6:5d21) push af ld a, $54 ld [wNewTileBlockID], a - ld bc, $0602 + lb bc, 6, 2 predef ReplaceTileBlock pop af .asm_19d48 @@ -29,11 +29,13 @@ SilphCo4Script_19d21: ; 19d21 (6:5d21) ret nz ld a, $54 ld [wNewTileBlockID], a - ld bc, $0406 + lb bc, 4, 6 predef_jump ReplaceTileBlock -SilphCo4Data19d58: ; 19d58 (6:5d58) - db $06, $02, $04, $06, $ff +SilphCo4GateCoords: ; 19d58 (6:5d58) + db $06,$02 + db $04,$06 + db $FF SilphCo4Script_19d5d: ; 19d5d (6:5d5d) push hl |