Replace $0 with 0 for "ld l, a / ld h, 0" idiom
This commit is contained in:
@@ -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]
|
||||
|
Reference in New Issue
Block a user