summaryrefslogtreecommitdiff
path: root/engine/movement_pattern.asm
diff options
context:
space:
mode:
authorlibjet <libj3t@gmail.com>2020-02-19 02:42:34 +0000
committerlibjet <libj3t@gmail.com>2020-02-19 02:42:34 +0000
commit5172056acdf4691e8d3db4563d3a1a73d7025efc (patch)
tree91a918cd62b151c993a843a388cc38ec0e51509f /engine/movement_pattern.asm
parent6cbd16985aaa5408f855454c55a073d753b38d8c (diff)
Use labels instead of constants for HRAM
Diffstat (limited to 'engine/movement_pattern.asm')
-rwxr-xr-xengine/movement_pattern.asm16
1 files changed, 8 insertions, 8 deletions
diff --git a/engine/movement_pattern.asm b/engine/movement_pattern.asm
index 0b7617ca..1909f480 100755
--- a/engine/movement_pattern.asm
+++ b/engine/movement_pattern.asm
@@ -137,26 +137,26 @@ Function47fa:
Function47fb: ; 47fb (1:47fb)
call Random
- ld a, [hRandom]
+ ldh a, [hRandom]
and $1
jp Function4ac9
Function4805: ; 4805 (1:4805)
call Random
- ld a, [hRandom]
+ ldh a, [hRandom]
and $1
or $2
jp Function4ac9
Function4811: ; 4811 (1:4811)
call Random
- ld a, [hRandom]
+ ldh a, [hRandom]
and $3
jp Function4ac9
Function481b: ; 481b (1:481b)
call Random
- ld a, [hRandom]
+ ldh a, [hRandom]
and $c
ld hl, $8
add hl, bc
@@ -170,7 +170,7 @@ Function482a: ; 482a (1:482a)
and $c
ld d, a
call Random
- ld a, [hRandom]
+ ldh a, [hRandom]
and $c
cp d
jr nz, .asm_483e
@@ -608,7 +608,7 @@ Function4ac9: ; 4ac9 (1:4ac9)
add hl, bc
ld [hl], $2
ld hl, wCenteredObject
- ld a, [hConnectionStripLength]
+ ldh a, [hConnectionStripLength]
cp [hl]
jr z, .asm_4ae9
ld hl, $9
@@ -627,13 +627,13 @@ Function4ac9: ; 4ac9 (1:4ac9)
call Function4603
Function4af6: ; 4af6 (1:4af6)
call Random
- ld a, [hRandom]
+ ldh a, [hRandom]
and $7f
jr asm_4b06
Function4aff: ; 4aff (1:4aff)
call Random
- ld a, [hRandomAdd]
+ ldh a, [hRandomAdd]
and $1f
asm_4b06
ld hl, $a