Prev: 54957 Up: Map Next: 54995
54973: Draw Tile Both
Used by the routine at DrawTilePixels.
Draws a tile reflected both horizontally and vertically.
Input
DE The address of the tile
HL The screen address
Start at the last line.
DrawTileBoth 54973 LD B,8 Set the number of lines.
54975 INC DE Move to the last line.
54976 INC DE
54977 INC DE
54978 INC DE
54979 INC DE
54980 INC DE
54981 INC DE
Draw each line turned round, from last to first.
DrawTileBoth_Line 54982 LD A,(DE) Fetch a line, move to the previous one and keep the line in C.
54983 DEC DE
54984 LD C,A
54985 PUSH BC Save the counters.
54986 LD B,249 Point BC at the page of bytes turned round.
54988 LD A,(BC) Draw the line turned round.
54989 LD (HL),A
54990 INC H
54991 POP BC Restore the counters.
54992 DJNZ DrawTileBoth_Line Go back for the next line.
54994 RET Return.
Prev: 54957 Up: Map Next: 54995