summaryrefslogtreecommitdiff
path: root/source/bank_02.asm
diff options
context:
space:
mode:
authormid-kid <esteve.varela@gmail.com>2020-09-14 17:05:33 +0200
committermid-kid <esteve.varela@gmail.com>2020-09-14 17:05:33 +0200
commitf4f0504c9fd506f21d9864fbfe0c1e49e8197c49 (patch)
treefe3a3452e5a1f005483ee9037d3b9c3482641bb1 /source/bank_02.asm
parent498db1d1aec816d3e45fc86c9a4c6d02f6b008d1 (diff)
parent83ea6fc2fba1f04fd2266f0a15e873cd94f6ed5b (diff)
Merge branch 'master' of github.com:mid-kid/pokepicross
Diffstat (limited to 'source/bank_02.asm')
-rw-r--r--source/bank_02.asm10
1 files changed, 2 insertions, 8 deletions
diff --git a/source/bank_02.asm b/source/bank_02.asm
index a15b070..7b25e93 100644
--- a/source/bank_02.asm
+++ b/source/bank_02.asm
@@ -72,10 +72,7 @@ textbox_print_char::
.done
; Back up string pointer
pop hl
- ld a, l
- ld [w_textbox_cur_string + 0], a
- ld a, h
- ld [w_textbox_cur_string + 1], a
+ ld16 w_textbox_cur_string, hl
; Check if the next character is a terminator
ld a, [hl+]
@@ -102,10 +99,7 @@ textbox_draw_char::
ld d, [hl]
ld hl, gfx_text_chars_dark
add hl, de
- ld a, l
- ld [w_vwf_char_addr + 0], a
- ld a, h
- ld [w_vwf_char_addr + 1], a
+ ld16 w_vwf_char_addr, hl
ld a, BANK(gfx_text_chars_dark)
ld [w_vwf_char_bank], a