Prev: 60272 Up: Map Next: 60380
60310: 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 60310 LD A,1 Open stream 1 via CHAN_OPEN.
60312 CALL 5633
60315 LD BC,15 Point DE at Messaging_Loading with length 0015.
60318 LD DE,60295
60321 CALL 8253 Call PR_STRING.
60324 LD BC,10 Point DE at Main_Image_Header_Text with length 0010.
60327 LD DE,60273
60330 CALL 8253 Call PR_STRING.
60333 LD A,32 Print two spaces with PRINT_A_1.
60335 RST 16
60336 LD A,32
60338 RST 16
Print the progress counter as two hexadecimal digits.
60339 LD A,(60294) Fetch *Load_Progress_Counter into A.
60342 PUSH AF Stash the counter on the stack.
60343 CALL Print_Progress_HighDigit Call Print_Progress_HighDigit.
60346 POP AF Restore the counter from the stack.
60347 CALL Print_Progress_LowDigit Call Print_Progress_LowDigit.
60350 LD A,(60294) Increment *Load_Progress_Counter.
60353 INC A
60354 LD (60294),A
60357 RET Return.
Print the high nibble of A as a hexadecimal digit.
Print_Progress_HighDigit 60358 SRL A Shift A down by four bits.
60360 SRL A
60362 SRL A
60364 SRL A
Convert a nibble in A to ASCII and print it.
Print_Progress_HexDigit 60366 CP 10 Jump to Print_Progress_PrintDigit if the nibble is less than 10.
60368 JR C,Print_Progress_PrintDigit
60370 ADD A,7 Add 7 to step from 10 up to "A".
Make the digit printable and send it to the screen.
Print_Progress_PrintDigit 60372 ADD A,48 Add 48 to form an ASCII digit or letter.
60374 RST 16 Print it with PRINT_A_1.
60375 RET Return.
Print the low nibble of A as a hexadecimal digit.
Print_Progress_LowDigit 60376 AND %00001111 Keep only the low nibble.
60378 JR Print_Progress_HexDigit Jump to Print_Progress_HexDigit.
Prev: 60272 Up: Map Next: 60380