mirror of
https://github.com/pret/pokegold-spaceworld.git
synced 2026-08-09 03:34:37 -05:00
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.
33 lines
443 B
NASM
33 lines
443 B
NASM
INCLUDE "constants.asm"
|
|
|
|
SECTION "Predef pointers", ROMX[$62B0], BANK[$01]
|
|
|
|
GetPredefPointer:: ; 1:62b0
|
|
ld a, h
|
|
ld [wPredefHL], a
|
|
ld a, l
|
|
ld [wPredefHL + 1], a
|
|
ld hl, wPredefDE
|
|
ld a, d
|
|
ld [hli], a
|
|
ld a, e
|
|
ld [hli], a
|
|
ld a, b
|
|
ld [hli], a
|
|
ld [hl], c
|
|
|
|
ld a, [wPredefID]
|
|
ld e, a
|
|
ld d, 0
|
|
ld hl, PredefPointers
|
|
add hl, de
|
|
add hl, de
|
|
add hl, de
|
|
ld a, [hli]
|
|
ld e, [hl]
|
|
inc hl
|
|
ld d, [hl]
|
|
ret
|
|
|
|
INCLUDE "data/predef_pointers.inc"
|