diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-01 13:08:08 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-01 13:13:40 -0400 |
commit | e6f75432928ccd915016162a68df43b0adf6ce04 (patch) | |
tree | 8b3efc7441195cb12dcdbd34442da00f45e2fdcc /engine/menus/naming_screen.asm | |
parent | 534863abe1d7c57707135574ef8bb1094aa5be22 (diff) |
Identify more labels, and use the jumptable macro when possible
Diffstat (limited to 'engine/menus/naming_screen.asm')
-rw-r--r-- | engine/menus/naming_screen.asm | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/engine/menus/naming_screen.asm b/engine/menus/naming_screen.asm index 8153d296..f45916c2 100644 --- a/engine/menus/naming_screen.asm +++ b/engine/menus/naming_screen.asm @@ -341,16 +341,7 @@ NamingScreenJoypadLoop: ret .RunJumptable: - ld a, [wJumptableIndex] - ld e, a - ld d, $0 - ld hl, .Jumptable - add hl, de - add hl, de - ld a, [hli] - ld h, [hl] - ld l, a - jp hl + jumptable .Jumptable, wJumptableIndex .Jumptable: dw .InitCursor @@ -1035,16 +1026,7 @@ INCBIN "gfx/icons/mail_big.2bpp" ret .DoJumptable: - ld a, [wJumptableIndex] - ld e, a - ld d, 0 - ld hl, .Jumptable - add hl, de - add hl, de - ld a, [hli] - ld h, [hl] - ld l, a - jp hl + jumptable .Jumptable, wJumptableIndex .Jumptable: dw .init_blinking_cursor |