mirror of
https://github.com/pret/pokegold-spaceworld.git
synced 2026-08-09 03:34:37 -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.
60 lines
968 B
NASM
60 lines
968 B
NASM
INCLUDE "constants.asm"
|
|
|
|
; if DEBUG
|
|
SECTION "home/unknown.asm@Empty function", ROM0
|
|
; else
|
|
; SECTION "Empty function", ROM0[$2F5B]
|
|
; endc
|
|
|
|
InexplicablyEmptyFunction:: ; 2f97
|
|
rept 16
|
|
nop
|
|
endr
|
|
ret
|
|
|
|
|
|
; TODO:
|
|
; 1. Figure out what these are. Might be related to RTC, like ClearRTCStatus and the ilk.
|
|
; 2. Give them proper names.
|
|
; 3. Move them to their own file(s).
|
|
|
|
SECTION "home/unknown.asm@Unknown functions", ROM0
|
|
|
|
_1FF4:: ; 1ff4
|
|
ld a, BANK(s0_a600)
|
|
call OpenSRAM
|
|
ld hl, s0_a600 ; TODO: label this.
|
|
ld bc, 7
|
|
xor a
|
|
call ByteFill
|
|
call CloseSRAM
|
|
ret
|
|
|
|
_2007:: ; 2007
|
|
ld a, BANK(s0_a600)
|
|
call OpenSRAM
|
|
ld a, [s0_a600]
|
|
and 8
|
|
ld [wce5f], a
|
|
call CloseSRAM
|
|
ret
|
|
|
|
SECTION "home/unknown.asm@Unknown_20f8", ROM0
|
|
|
|
Function20f8::
|
|
call Function1848
|
|
call Function18cc
|
|
ret
|
|
|
|
SECTION "home/unknown.asm@Unknown_094c", ROM0
|
|
|
|
Function094c::
|
|
ldh a, [hROMBank]
|
|
push af
|
|
ld a, BANK(Functionfe255)
|
|
call Bankswitch
|
|
call Functionfe255
|
|
|
|
pop af
|
|
call Bankswitch
|
|
jp DebugMenu |