pokegold-spaceworld/engine/predef.asm
Narishma-gb e88fe24e15
Use the same Makefile build system as Gen 1+2 repos (#163)
This uses catch-all files like main.asm to reduce the total quantity and size of
build objects (from 1.1 GB to 70 MB).

---------

Co-authored-by: Rangi <35663410+Rangi42@users.noreply.github.com>
2026-07-05 15:36:09 -04:00

29 lines
358 B
NASM

GetPredefPointer::
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.asm"