mirror of
https://github.com/pret/pokegold-spaceworld.git
synced 2026-04-26 08:13:44 -05:00
Some checks failed
CI / build (push) Has been cancelled
* 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>
91 lines
1.3 KiB
PHP
91 lines
1.3 KiB
PHP
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, "0"
|
||
jr z, .not_set
|
||
ld a, "1"
|
||
.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
|
||
|