Prev: B6F5 Up: Map Next: B74A
B72D: Print a character from the main character set
Used by the routines at B74A, B755 and B774.
Input
A The character to print
HL The screen address to print
BC Pointer to the character set (when called from B730)
B72D LD BC,$7700 100 less than the character set (which is at 7800). This allows ASCII text to be stored and easily printed.
This entry point is used by the routine at B203, which uses the task button graphics to print "characters" for those instead.
B730 PUSH DE Remember this
B731 EX DE,HL Put address in DE
B732 LD L,A Get the character to print
B733 LD H,$00
B735 ADD HL,HL Shift it to be a pointer to the appropriate character set graphic
B736 ADD HL,HL
B737 ADD HL,HL
B738 ADD HL,BC
B739 EX DE,HL Put address back in HL
B73A LD C,H Remember H
B73B LD B,$08 8 lines
B73D LD A,(DE) Get the next line
B73E LD (HL),A Set it
B73F INC DE Next line in data
B740 INC H Next line on screen
B741 DJNZ $B73D Loop if more to do
B743 LD H,C Restore H
B744 INC L Next UDG position
B745 POP DE Restore
B746 RET All done
This entry point is used by the routine at B74A.
B747 CALL $B72D Print the character, then carry on to check another one
Prev: B6F5 Up: Map Next: B74A