mirror of
https://github.com/pret/pokegold-spaceworld.git
synced 2026-10-07 08:06:55 -04:00
cd9191b074
This makefile can now figure graphics dependencies on its own, creates dependency files for each compilation unit and compiles everything separately. This is a proposal. Please try it out, read the Makefile to see if you get what I'm trying to do, and propose any improvements you want.
37 lines
634 B
NASM
37 lines
634 B
NASM
INCLUDE "constants.asm"
|
|
|
|
SECTION "Empty function", ROM0[$2F97]
|
|
|
|
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 "Unknown functions", ROM0[$1FF4]
|
|
|
|
_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
|