Prev: EB70 Up: Map Next: EBDC
EB96: Print Progress
Used by the routine at Control_Loading.
Prints the "Loading:-" banner and the current progress counter while the overlapping chunks arrive.
Open the upper screen and print the banner plus header bytes.
Print_Progress EB96 LD A,$01 Open stream 01 via CHAN_OPEN.
EB98 CALL $1601
EB9B LD BC,$000F Point DE at Messaging_Loading with length 000F.
EB9E LD DE,$EB87
EBA1 CALL $203D Call PR_STRING.
EBA4 LD BC,$000A Point DE at Main_Image_Header_Text with length 000A.
EBA7 LD DE,$EB71
EBAA CALL $203D Call PR_STRING.
EBAD LD A,$20 Print two spaces with PRINT_A_1.
EBAF RST $10
EBB0 LD A,$20
EBB2 RST $10
Print the progress counter as two hexadecimal digits.
EBB3 LD A,($EB86) Fetch *Load_Progress_Counter into A.
EBB6 PUSH AF Stash the counter on the stack.
EBB7 CALL Print_Progress_HighDigit Call Print_Progress_HighDigit.
EBBA POP AF Restore the counter from the stack.
EBBB CALL Print_Progress_LowDigit Call Print_Progress_LowDigit.
EBBE LD A,($EB86) Increment *Load_Progress_Counter.
EBC1 INC A
EBC2 LD ($EB86),A
EBC5 RET Return.
Print the high nibble of A as a hexadecimal digit.
Print_Progress_HighDigit EBC6 SRL A Shift A down by four bits.
EBC8 SRL A
EBCA SRL A
EBCC SRL A
Convert a nibble in A to ASCII and print it.
Print_Progress_HexDigit EBCE CP $0A Jump to Print_Progress_PrintDigit if the nibble is less than 0A.
EBD0 JR C,Print_Progress_PrintDigit
EBD2 ADD A,$07 Add 07 to step from 0A up to "A".
Make the digit printable and send it to the screen.
Print_Progress_PrintDigit EBD4 ADD A,$30 Add 30 to form an ASCII digit or letter.
EBD6 RST $10 Print it with PRINT_A_1.
EBD7 RET Return.
Print the low nibble of A as a hexadecimal digit.
Print_Progress_LowDigit EBD8 AND %00001111 Keep only the low nibble.
EBDA JR Print_Progress_HexDigit Jump to Print_Progress_HexDigit.
Prev: EB70 Up: Map Next: EBDC