Prev: BA35 Up: Map Next: BA57
BA36: Print the summary's three counts
Used by the routine at GAME_ENDED.
Prints the counts SUMMARISE_CHAMBERS has worked out over the spaces the summary's text list (SUMMARY_COLOURS) leaves for them, into the buffer, in the digits' font: the activated chambers (SUMMARY_ACTIVE) at pixel x 184, y 127; the unactivated ones (SUMMARY_IDLE) at x 184, y 95; the crew lost (SUMMARY_LOST, four BCD digits of which the last three are printed) at x 176, y 79. Called by the summary (GAME_ENDED), before it draws the border and shows the buffer.
PRINT_SUMMARY_COUNTS BA36 LD HL,FONT the font itself as the base, so that a BCD digit is its own character code
BA39 LD (FONT_BASE),HL
BA3C LD DE,SUMMARY_LOST SUMMARY_LOST: its low digit, then both digits of the byte after
BA3F LD HL,$DBF6
BA42 LD B,$02
BA44 CALL PRINT_BCD_LSD
BA47 LD HL,$E1F7 SUMMARY_ACTIVE, the next byte: both digits
BA4A LD B,$01
BA4C CALL PRINT_BCD_BYTE
BA4F LD HL,$DDF7 SUMMARY_IDLE, the byte after that
BA52 LD B,$01
BA54 JP PRINT_BCD_BYTE
Prev: BA35 Up: Map Next: BA57