pokegold-spaceworld/engine/predef.asm
pfero cd9191b074 Clean up Makefile
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.
2018-05-30 22:53:59 +02:00

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"