summaryrefslogtreecommitdiff
path: root/predef
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 /predef
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 'predef')
-rw-r--r--predef/cgb.asm4
-rwxr-xr-xpredef/crystal.asm2
-rw-r--r--predef/sgb.asm2
3 files changed, 4 insertions, 4 deletions
diff --git a/predef/cgb.asm b/predef/cgb.asm
index b0c3fdb46..5ac243963 100644
--- a/predef/cgb.asm
+++ b/predef/cgb.asm
@@ -25,7 +25,7 @@ Predef_LoadSGBLayoutCGB: ; 8d59
ld l, a
ld de, .ReturnFromJumpTable
push de
- jp [hl]
+ jp hl
; 8d79
.ReturnFromJumpTable: ; 8d79
@@ -491,7 +491,7 @@ _CGB07: ; 9122
ld a, [hli]
ld h, [hl]
ld l, a
- jp [hl]
+ jp hl
; 912d
Jumptable_912d: ; 912d
diff --git a/predef/crystal.asm b/predef/crystal.asm
index 8f542e5dd..9aa0fbdf2 100755
--- a/predef/crystal.asm
+++ b/predef/crystal.asm
@@ -17,7 +17,7 @@ GetMysteryGift_MobileAdapterLayout: ; 4930f (mobile)
ld l, a
ld de, .done
push de
- jp [hl]
+ jp hl
.done
ret
; 49330 (12:5330)
diff --git a/predef/sgb.asm b/predef/sgb.asm
index 65a09756d..1d8184cc2 100644
--- a/predef/sgb.asm
+++ b/predef/sgb.asm
@@ -20,7 +20,7 @@ Predef_LoadSGBLayout: ; 864c
ld l, a
ld de, .Finish
push de
- jp [hl]
+ jp hl
; 866f
.Jumptable: ; 866f