mirror of
https://github.com/pret/pokegold-spaceworld.git
synced 2026-08-09 11:47:38 -05:00
Addresses of sections will now be added to the linkerscript via `org`, and the section name will be the path/to/file. If there is more than one section in the file, then add a @SectionName after the path/to/file to describe the section.
23 lines
394 B
NASM
23 lines
394 B
NASM
include "constants.asm"
|
|
|
|
SECTION "home/window.asm", ROM0
|
|
|
|
RefreshScreen::
|
|
call ClearWindowData
|
|
ldh a, [hROMBank]
|
|
push af
|
|
ld a, BANK(ReanchorBGMap_NoOAMUpdate) ; and BANK(LoadFonts_NoOAMUpdate)
|
|
call Bankswitch
|
|
|
|
call ReanchorBGMap_NoOAMUpdate
|
|
call LoadFonts_NoOAMUpdate
|
|
|
|
pop af
|
|
call Bankswitch
|
|
ret
|
|
|
|
Function1fea::
|
|
call TextboxCleanup
|
|
call ClearWindowData
|
|
call InitToolgearBuffer
|
|
ret |