pokegold-spaceworld/engine/debug/field/unused_flag_menu.inc
DrippingYellow ce247cc761
Some checks failed
CI / build (push) Has been cancelled
Adding bank14, good chunk of text transcribed and labelled in bank0d, renaming farcall to callab, and much more (#112)
* Sporadic constantifying and function naming

* Added bank 14

* Delete .DS_Store files

* Delete EOL whitespace

* Use Tab indents instead of four spaces

* Identify some routines

* Identify more stuff

* Identified party and box structs

* Identified wBattleMon and wEnemyMon structs

* Macro'd landmarks, cleaned up comments

---------

Co-authored-by: vulcandth <vulcandth@gmail.com>
2025-01-16 12:12:38 -06:00

91 lines
1.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FieldDebug_UnusedFlagMenu: ; unused?
ld hl, .MenuHeader
call LoadMenuHeader
call VerticalMenu
call CloseWindow
ret
.MenuHeader:
db MENU_BACKUP_TILES
menu_coords 0, 0, 7, 10
dw .MenuData
db 1
.MenuData:
db STATICMENU_CURSOR
db 4
db "フラグ1@"
db "フラグ2@"
db "フラグ3@"
db "フラグ4@"
call LoadStandardMenuHeader
bccoord 0, 14
call .DoCheckFlags
call WaitBGMap
ld a, A_BUTTON | B_BUTTON
call FieldDebug_WaitJoypadInput
call CloseWindow
ld a, FIELDDEBUG_RETURN_REOPEN
ret
.DoCheckFlags:
MACRO unused_check_bit
ld hl, \1
bit 0, [hl]
call .CheckBit
ld hl, \1
bit 1, [hl]
call .CheckBit
ld hl, \1
bit 2, [hl]
call .CheckBit
ld hl, \1
bit 3, [hl]
call .CheckBit
ld hl, \1
bit 4, [hl]
call .CheckBit
ld hl, \1
bit 5, [hl]
call .CheckBit
ld hl, \1
bit 6, [hl]
call .CheckBit
ld hl, \1
bit 7, [hl]
call .CheckBit
ENDM
unused_check_bit wcdc3
unused_check_bit wcdc4
unused_check_bit wcdc5
unused_check_bit wcdc6
unused_check_bit wcdc7
ret
.CheckBit:
ld a, ""
jr z, .not_set
ld a, ""
.not_set
ld [bc], a
inc bc
ret
Functionfd91e: ; unused?
call .asm_fd930
ld a, [wNumSetBits]
ld [wCurPartySpecies], a
callfar Pokepic
ret
.asm_fd930
call Random
cp 251
jr nc, .asm_fd930
inc a
ld [wNumSetBits], a
ret