Prev: BC96 Up: Map Next: BDD1
BDA5: Print cursor sprite.
Used by the routine at routine41.
print_cursor BDA5 LD A,$02 Call CHAN-OPEN in ROM to set output channel to 2 (Screen).
BDA7 CALL $1601
BDAA LD BC,(cursor_coordinates) Load cursor coordinates into BC and convert to Spectrum screen coordinates.
BDAE CALL GET_LC
BDB1 LD A,$16 Use PRINT-A routine in ROM to print AT control code.
BDB3 RST $10
BDB4 LD A,B Output the coordinates B,C using PRINT-A.
BDB5 RST $10
BDB6 LD A,C
BDB7 RST $10
BDB8 LD A,$90 Print the first User Defined Graphic character.
BDBA RST $10
BDBB LD A,$91 Print the second User Defined Graphic character.
BDBD RST $10
BDBE INC B Increment B coordinate to move down a row.
BDBF LD A,$16 Print AT control code followed by coordinates B,C.
BDC1 RST $10
BDC2 LD A,B
BDC3 RST $10
BDC4 LD A,C
BDC5 RST $10
BDC6 LD A,$92 Print third and fourth User Defined Graphic characters.
BDC8 RST $10
BDC9 LD A,$93
BDCB RST $10
BDCC LD BC,(cursor_coordinates) Load cursor coordinates into BC and return.
BDD0 RET
Prev: BC96 Up: Map Next: BDD1