Replace $0 with 0 for "ld l, a / ld h, 0" idiom

This commit is contained in:
Rangi
2020-11-09 15:17:03 -05:00
parent 03e149e559
commit 17894e5f39
42 changed files with 160 additions and 160 deletions

View File

@@ -1126,7 +1126,7 @@ CoordinatesEventText::
CheckObjectMask::
ldh a, [hMapObjectIndexBuffer]
ld e, a
ld d, $0
ld d, 0
ld hl, wObjectMasks
add hl, de
ld a, [hl]
@@ -1135,7 +1135,7 @@ CheckObjectMask::
MaskObject::
ldh a, [hMapObjectIndexBuffer]
ld e, a
ld d, $0
ld d, 0
ld hl, wObjectMasks
add hl, de
ld [hl], -1 ; masked
@@ -1144,7 +1144,7 @@ MaskObject::
UnmaskObject::
ldh a, [hMapObjectIndexBuffer]
ld e, a
ld d, $0
ld d, 0
ld hl, wObjectMasks
add hl, de
ld [hl], 0 ; unmasked
@@ -1719,7 +1719,7 @@ GetCoordTile::
and a
jr z, .nope
ld l, a
ld h, $0
ld h, 0
add hl, hl
add hl, hl
ld a, [wTilesetCollisionAddress]

View File

@@ -679,7 +679,7 @@ ContinueGettingMenuJoypad:
call GetMenuIndexSet
ld a, [wMenuCursorY]
ld l, a
ld h, $0
ld h, 0
add hl, de
ld a, [hl]
ld [wMenuSelection], a
@@ -742,7 +742,7 @@ MenuJumptable::
GetMenuDataPointerTableEntry::
ld e, a
ld d, $0
ld d, 0
ld hl, wMenuDataPointerTableAddr
ld a, [hli]
ld h, [hl]