diff options
author | xCrystal <rgr.crystal@gmail.com> | 2017-12-30 01:54:27 +0100 |
---|---|---|
committer | xCrystal <rgr.crystal@gmail.com> | 2017-12-30 01:54:27 +0100 |
commit | 237aeb8fbdb204948d611830565d4a00c6b0ab70 (patch) | |
tree | 94dea41b4af4a3374a1a1e2f56665cff2ea5baa9 /engine/special_warps.asm | |
parent | 94b9a86c8b9b6ea29653e98921205056790d6617 (diff) |
Add space between arguments in assembly instructions and remove redundant a in instructions like add a, x
Diffstat (limited to 'engine/special_warps.asm')
-rw-r--r-- | engine/special_warps.asm | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/engine/special_warps.asm b/engine/special_warps.asm index de00a817..3a8b8b86 100644 --- a/engine/special_warps.asm +++ b/engine/special_warps.asm @@ -1,31 +1,31 @@ SpecialWarpIn: call LoadSpecialWarpData predef LoadTilesetHeader - ld hl,wd732 - bit 2,[hl] ; dungeon warp or fly warp? - res 2,[hl] - jr z,.next + ld hl, wd732 + bit 2, [hl] ; dungeon warp or fly warp? + res 2, [hl] + jr z, .next ; if dungeon warp or fly warp - ld a,[wDestinationMap] + ld a, [wDestinationMap] jr .next2 .next - bit 1,[hl] - jr z,.next3 + bit 1, [hl] + jr z, .next3 call EmptyFunc .next3 - ld a,0 + ld a, 0 .next2 - ld b,a - ld a,[wd72d] + ld b, a + ld a, [wd72d] and a - jr nz,.next4 - ld a,b + jr nz, .next4 + ld a, b .next4 - ld hl,wd732 - bit 4,[hl] ; dungeon warp? + ld hl, wd732 + bit 4, [hl] ; dungeon warp? ret nz ; if not dungeon warp - ld [wLastMap],a + ld [wLastMap], a ret ; gets the map ID, tile block map view pointer, tileset, and coordinates |