summaryrefslogtreecommitdiff
path: root/engine/menus/debug.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-07-01 13:08:08 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-07-01 13:13:40 -0400
commite6f75432928ccd915016162a68df43b0adf6ce04 (patch)
tree8b3efc7441195cb12dcdbd34442da00f45e2fdcc /engine/menus/debug.asm
parent534863abe1d7c57707135574ef8bb1094aa5be22 (diff)
Identify more labels, and use the jumptable macro when possible
Diffstat (limited to 'engine/menus/debug.asm')
-rw-r--r--engine/menus/debug.asm11
1 files changed, 1 insertions, 10 deletions
diff --git a/engine/menus/debug.asm b/engine/menus/debug.asm
index b1adf7d1..0df9ea3f 100644
--- a/engine/menus/debug.asm
+++ b/engine/menus/debug.asm
@@ -235,16 +235,7 @@ DebugColorMain:
jr nz, .PreviousMon
.asm_fd49e
- ld a, [wJumptableIndex]
- ld e, a
- ld d, 0
- ld hl, Jumptable_fd4e2
- add hl, de
- add hl, de
- ld a, [hli]
- ld h, [hl]
- ld l, a
- jp hl
+ jumptable Jumptable_fd4e2, wJumptableIndex
.NextMon:
call DebugColor_BackupSpriteColors