Prev: 6BD6 Up: Map Next: 6C0F
6BFA: Print a tile or font character
Used by the routines at 655B, 6B48 and 6BD6.
Input
C Attribute byte
DE Address of the sprite tile or font character graphic data
HL Display file address
HL' Attribute file address
Output
HL Display file address for the next tile to the right
HL' Attribute file address for the next tile to the right
6BFA LD A,C Copy the attribute byte to A.
6BFB EXX Exchange registers.
6BFC LD (HL),A Set the attribute byte.
6BFD INC HL Point HL' at the next attribute byte.
6BFE EXX Exchange registers.
6BFF LD B,$08 Copy the 8 graphic bytes of the tile to the screen.
6C01 LD A,(DE)
6C02 LD (HL),A
6C03 INC H
6C04 INC DE
6C05 DJNZ $6C01
6C07 INC L Set HL to the display file address for the next tile to the right.
6C08 RET Z
6C09 LD B,$08
6C0B LD A,H
6C0C SUB B
6C0D LD H,A
6C0E RET
Prev: 6BD6 Up: Map Next: 6C0F