pokegold-spaceworld/engine/events/pokepic.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

47 lines
796 B
NASM

INCLUDE "constants.asm"
SECTION "engine/events/pokepic.asm", ROMX
Pokepic::
ld a, 1
ldh [hBGMapMode], a
ld hl, .PokepicMenuHeader
call LoadMenuHeader
call MenuBox
call UpdateSprites
ld b, SGB_POKEPIC
call GetSGBLayout
xor a
ldh [hBGMapMode], a
ld a, [wCurPartySpecies]
ld [wCurSpecies], a
call GetBaseData
ld de, vChars1
call LoadMonFrontSprite
ld a, [wMenuBorderTopCoord]
inc a
ld b, a
ld a, [wMenuBorderLeftCoord]
inc a
ld c, a
call Coord2Tile
ld a, $80
ldh [hGraphicStartTile], a
lb bc, 7, 7
predef PlaceGraphic
ld a, 1
ldh [hBGMapMode], a
call TextboxWaitPressAorB_BlinkCursor
call ClearMenuBoxInterior
call WaitBGMap
call GetMemSGBLayout
call CloseWindow
call LoadFont
ret
.PokepicMenuHeader:
db MENU_BACKUP_TILES
menu_coords 6, 4, 14, 13
dw 0
db 1