Prev: BA92 Up: Map Next: BB40
BADD: Display game progess on the main menu screen.
Used by the routine at Game_MainMenu.
Menu_DisplayProgess BADD LD A,$01
BADF CALL $1601
BAE2 CALL Print_StringOnStack
BAE5 DEFM $10,$05,$11,$00,$5E
BAEA LD A,$01
BAEC LD HL,Str_M_Central
BAEF LD DE,Stat_Percent
Menu_DisplayProgess_0 BAF2 PUSH AF
BAF3 CALL Print_TermString
BAF6 CP $2B
BAF8 JR NZ,Menu_DisplayProgess_2
BAFA EX DE,HL
BAFB LD A,(HL)
BAFC AND A
BAFD JR Z,Menu_DisplayProgess_1
BAFF CALL Percentage_Print
BB02 LD A,$25
BB04 CALL Print_Character
BB06 OR (HL) active / ended
Menu_DisplayProgess_1 BB07 EX DE,HL
Menu_DisplayProgess_2 BB08 INC DE
BB09 INC DE
BB0A POP AF
BB0B PUSH AF
BB0C PUSH HL
BB0D LD BC,(_bd0c_central_)
BB11 CP C
BB12 JR C,Menu_DisplayProgess_3
BB14 LD A,(Game_State)
BB17 AND A
BB18 JR NZ,Menu_DisplayProgess_3
BB1A CALL Print_StringOnStack
BB1D DEFM $17,$18,$00,": active",$5E
BB29 JR Menu_DisplayProgess_4
Menu_DisplayProgess_3 BB2B CALL Print_StringOnStack
BB2E DEFM $17,$18,$00,": ended",$5E
Menu_DisplayProgess_4 BB39 POP HL
BB3A POP AF
BB3B CP C
BB3C RET NC
BB3D INC A
BB3E JR Menu_DisplayProgess_0
Prev: BA92 Up: Map Next: BB40