summaryrefslogtreecommitdiff
path: root/engine/pack.asm
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 /engine/pack.asm
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 'engine/pack.asm')
-rw-r--r--engine/pack.asm14
1 files changed, 7 insertions, 7 deletions
diff --git a/engine/pack.asm b/engine/pack.asm
index 19b7fccbf..8a63d22e5 100644
--- a/engine/pack.asm
+++ b/engine/pack.asm
@@ -23,7 +23,7 @@ Pack: ; 10000
ld a, [wJumptableIndex]
ld hl, .Jumptable
call Pack_GetJumptablePointer
- jp [hl]
+ jp hl
; 10030
@@ -144,7 +144,7 @@ Pack: ; 10000
ld a, [wMenuCursorY]
dec a
call Pack_GetJumptablePointer
- jp [hl]
+ jp hl
; 10124 (4:4124)
.MenuDataHeader1: ; 0x10124
@@ -306,7 +306,7 @@ Pack: ; 10000
ld a, [wMenuCursorY]
dec a
call Pack_GetJumptablePointer
- jp [hl]
+ jp hl
; 10249 (4:4249)
MenuDataHeader_UsableKeyItem: ; 0x10249
@@ -689,7 +689,7 @@ BattlePack: ; 10493
ld a, [wJumptableIndex]
ld hl, .Jumptable
call Pack_GetJumptablePointer
- jp [hl]
+ jp hl
; 104c3
@@ -846,7 +846,7 @@ TMHMSubmenu: ; 105dc (4:45dc)
ld a, [wMenuCursorY]
dec a
call Pack_GetJumptablePointer
- jp [hl]
+ jp hl
; 10601 (4:4601)
.UsableMenuDataHeader: ; 0x10601
@@ -997,7 +997,7 @@ DepositSellPack: ; 106be
ld a, [wJumptableIndex]
ld hl, .Jumptable
call Pack_GetJumptablePointer
- jp [hl]
+ jp hl
; 106d1
@@ -1144,7 +1144,7 @@ TutorialPack: ; 107bb
ld a, [wJumptableIndex]
ld hl, .dw
call Pack_GetJumptablePointer
- jp [hl]
+ jp hl
; 107e1