pokegold-spaceworld/engine/dumps/bank03.asm
DrippingYellow e384ea25ec
Some checks failed
CI / build (push) Has been cancelled
Finish labelling and split off bank03, bank09, and bank0b (#119)
* 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
2025-07-30 17:35:58 -04:00

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