summaryrefslogtreecommitdiff
path: root/event
diff options
context:
space:
mode:
authorBen10do <Ben10do@users.noreply.github.com>2017-06-09 22:01:10 +0100
committerBen10do <Ben10do@users.noreply.github.com>2017-06-09 22:01:10 +0100
commite6ea1889fbce20b0dc170310ac63891a1cca2bb5 (patch)
tree436ae844ff5b28f9680d2ac13657c0e9be3af690 /event
parentfb154f5a6e43a86801fd16f392633c854d099ac4 (diff)
Replace ‘jp [hl]’ with ‘jp hl’
The former is arguably misleading (as you don’t access the memory location in hl to retrieve the jump location), and is consequently deprecated in newer versions of rgbds. This fix silences these deprecation warnings.
Diffstat (limited to 'event')
-rwxr-xr-xevent/field_moves.asm2
-rwxr-xr-xevent/magnet_train.asm2
-rw-r--r--event/mom.asm2
3 files changed, 3 insertions, 3 deletions
diff --git a/event/field_moves.asm b/event/field_moves.asm
index c1b3bc236..82660da2f 100755
--- a/event/field_moves.asm
+++ b/event/field_moves.asm
@@ -169,7 +169,7 @@ OWCutJumptable: ; 8ca0c
ld a, [hli]
ld h, [hl]
ld l, a
- jp [hl]
+ jp hl
; 8ca1b
diff --git a/event/magnet_train.asm b/event/magnet_train.asm
index ccc41a59d..75bd12cd7 100755
--- a/event/magnet_train.asm
+++ b/event/magnet_train.asm
@@ -299,7 +299,7 @@ MagnetTrain_Jumptable: ; 8cdf7
ld a, [hli]
ld h, [hl]
ld l, a
- jp [hl]
+ jp hl
; 8ce06
.Jumptable: ; 8ce06
diff --git a/event/mom.asm b/event/mom.asm
index 4002f69d2..80513e5fb 100644
--- a/event/mom.asm
+++ b/event/mom.asm
@@ -28,7 +28,7 @@ Special_BankOfMom: ; 16218
ld a, [hli]
ld h, [hl]
ld l, a
- jp [hl]
+ jp hl
; 16242
.dw ; 16242