Prev: AC3E Up: Map Next: AEF8
AEBF: Print The Current Dan (or "NOVICE") Message
Used by the routine at Start_1UP_Game.
Should this be a Dan, or just "novice"?
Show_Rank AEBF LD HL,$0122 Grab Current_Rank.
AEC2 LD A,($B05F)
AEC5 AND $1F Mask bits d0-d4.
AEC7 JR NZ,Rank_Is_Dan If the rank is higher than zero jump to Rank_Is_Dan.
AEC9 LD DE,$B045 Point to Text_Novice and call Print_String.
AECC CALL Print_String
AECF RET Return.
Handle "ST" suffix.
Rank_Is_Dan AED0 LD DE,$B04D Use Text_ST_Suffix if this is the "1st" Dan.
AED3 CP $01
AED5 JR Z,Print_Rank
Handle "ND" suffix.
AED7 LD DE,$B050 Use Text_ND_Suffix if this is the "2nd" Dan.
AEDA CP $02
AEDC JR Z,Print_Rank
Handle "RD" suffix.
AEDE LD DE,$B053 Use Text_RD_Suffix if this is the "3rd" Dan.
AEE1 CP $03
AEE3 JR Z,Print_Rank
Handle "TH" suffix.
AEE5 LD DE,$B056 Else use Text_TH_Suffix for every"th"ing else.
Print the result to screen.
Print_Rank AEE8 LD HL,$0222 Call Print_String.
AEEB CALL Print_String
AEEE LD HL,$0422 Point to Text_Dan and call Print_String.
AEF1 LD DE,$B059
AEF4 CALL Print_String
AEF7 RET Return.
Prev: AC3E Up: Map Next: AEF8