Prev: 49552 Up: Map Next: 49600
49576: Print Date Bar
Used by the routine at Handler_DateBar.
Prints the date string at screen position 20545 with a space in front of it.
Input
HL Date messaging string
B Length of messaging string
PrintDateBar 49576 LD DE,20545 Start the date text at screen position 20545.
49579 EX DE,HL Swap the two pointers and count 0.
49580 LD C,0
Print a "SPACE" before the date string.
49582 LD A,32 Take a space and print it through PrintCharacter.
49584 CALL PrintCharacter
Loop through the date messaging string and output it to the screen.
PrintDateBar_Loop 49587 LD A,(DE) Fetch a character from *DE and store it in A.
Print character.
49588 CALL PrintCharacter Call PrintCharacter to print this character.
49591 INC DE Move to the next character of the message.
49592 DJNZ PrintDateBar_Loop Count the next character of the message and repeat from PrintDateBar_Loop.
Print a "SPACE" after the date string.
49594 LD A,32 Leave 32 as the result.
49596 CALL PrintCharacter Call PrintCharacter to print this character.
49599 RET Return.
Prev: 49552 Up: Map Next: 49600