mirror of
https://github.com/pret/pokegold-spaceworld.git
synced 2026-04-26 00:05:12 -05:00
Some checks failed
CI / build (push) Has been cancelled
* Fully labelled bank09.asm, started bank03.asm * Finished labelling bank03.asm and bank0b.asm * Tying up loose ends, splitting most of the completely labelled bank dumps * Moved pokedex letter graphics out of charmap
42 lines
620 B
NASM
Executable File
42 lines
620 B
NASM
Executable File
INCLUDE "constants.asm"
|
|
|
|
SECTION "engine/dumps/bank03.asm@Functionc9c1", ROMX
|
|
|
|
_Functionc9c1:
|
|
xor a
|
|
ld bc, $0020 ; presumably size of wCurrMapInlineTrainers
|
|
ld hl, wCurrMapInlineTrainers
|
|
call ByteFill
|
|
ld de, wMap2Object
|
|
ld a, 2 ; skip the player
|
|
.loop
|
|
push af
|
|
push de
|
|
ld hl, MAPOBJECT_PALETTE
|
|
add hl, de
|
|
ld a, [hl]
|
|
cp 0
|
|
jr nz, .skip
|
|
|
|
ld hl, MAPOBJECT_OBJECT_STRUCT_ID
|
|
add hl, de
|
|
ld a, [hl]
|
|
cp -1
|
|
jr z, .skip
|
|
call .check_inline_trainer
|
|
|
|
.skip
|
|
pop de
|
|
ld hl, MAPOBJECT_LENGTH
|
|
add hl, de
|
|
ld d, h
|
|
ld e, l
|
|
pop af
|
|
inc a
|
|
cp NUM_OBJECTS
|
|
jr nz, .loop
|
|
ret
|
|
|
|
.check_inline_trainer
|
|
jp CheckInlineTrainer
|