Prev: C190 Up: Map Next: C1C0
C1A8: Print Date Bar
Used by the routine at Handler_DateBar.
Prints the date string at screen position 5041 with a space in front of it.
Input
HL Date messaging string
B Length of messaging string
PrintDateBar C1A8 LD DE,$5041 Start the date text at screen position 5041.
C1AB EX DE,HL Swap the two pointers and count 00.
C1AC LD C,$00
Print a "SPACE" before the date string.
C1AE LD A,$20 Take a space and print it through PrintCharacter.
C1B0 CALL PrintCharacter
Loop through the date messaging string and output it to the screen.
PrintDateBar_Loop C1B3 LD A,(DE) Fetch a character from *DE and store it in A.
Print character.
C1B4 CALL PrintCharacter Call PrintCharacter to print this character.
C1B7 INC DE Move to the next character of the message.
C1B8 DJNZ PrintDateBar_Loop Count the next character of the message and repeat from PrintDateBar_Loop.
Print a "SPACE" after the date string.
C1BA LD A,$20 Leave 20 as the result.
C1BC CALL PrintCharacter Call PrintCharacter to print this character.
C1BF RET Return.
Prev: C190 Up: Map Next: C1C0