From bbf2f51a02b2544f1bef32a5868503b474ae2fef Mon Sep 17 00:00:00 2001 From: Rangi Date: Tue, 7 Jul 2020 18:50:58 -0400 Subject: Move all code out of home.asm into home/ This results in 64 home/*.asm files, comparable to pokecrystal's 57. --- home/textbox.asm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 home/textbox.asm (limited to 'home/textbox.asm') diff --git a/home/textbox.asm b/home/textbox.asm new file mode 100644 index 00000000..5067b044 --- /dev/null +++ b/home/textbox.asm @@ -0,0 +1,16 @@ +; function to draw various text boxes +; INPUT: +; [wTextBoxID] = text box ID +; b, c = y, x cursor position (TWO_OPTION_MENU only) +DisplayTextBoxID:: + ldh a, [hLoadedROMBank] + push af + ld a, BANK(DisplayTextBoxID_) + ldh [hLoadedROMBank], a + ld [MBC1RomBank], a + call DisplayTextBoxID_ + pop bc + ld a, b + ldh [hLoadedROMBank], a + ld [MBC1RomBank], a + ret -- cgit v1.3.1-sl0p