C115: Draw tile(n) at character position (char_y, char_x).
TileDraw |
C115 |
PUSH AF |
|
C116 |
PUSH HL |
|
C117 |
PUSH BC |
|
C118 |
PUSH DE |
|
C119 |
EX DE,HL |
|
C11A |
PUSH HL |
|
C11B |
LD D,$58 |
|
C11D |
LD E,L |
|
C11E |
LD L,H |
|
C11F |
LD H,$00 |
|
C121 |
ADD HL,HL |
|
C122 |
ADD HL,HL |
|
C123 |
ADD HL,HL |
|
C124 |
ADD HL,HL |
|
C125 |
ADD HL,HL |
|
C126 |
ADD HL,DE |
|
C127 |
LD (HL),C |
|
C128 |
POP HL |
|
C129 |
LD L,H |
|
C12A |
LD D,$00 |
|
C12C |
LD H,D |
|
C12D |
PUSH DE |
|
C12E |
ADD HL,HL |
|
C12F |
ADD HL,HL |
|
C130 |
ADD HL,HL |
|
C131 |
ADD HL,HL |
|
C132 |
LD DE,DF_lookup |
|
C135 |
ADD HL,DE |
|
C136 |
LD E,(HL) |
|
C137 |
INC HL |
|
C138 |
LD D,(HL) |
|
C139 |
EX DE,HL |
|
C13A |
DEC HL |
|
C13B |
DEC HL |
|
C13C |
POP DE |
|
C13D |
ADD HL,DE |
|
C13E |
PUSH HL |
|
C13F |
LD L,A |
|
C140 |
LD H,$00 |
|
C142 |
ADD HL,HL |
|
C143 |
ADD HL,HL |
|
C144 |
ADD HL,HL |
|
C145 |
DEFB $11 |
TileStartPtr |
C146 |
DEFB $A0,$C1,$19,$D1 |
|
C14A |
LD B,$08 |
TileDraw_0 |
C14C |
LD A,(HL) |
|
C14D |
LD (DE),A |
|
C14E |
INC HL |
|
C14F |
INC D |
|
C150 |
DJNZ TileDraw_0 |
|
C152 |
POP DE |
|
C153 |
POP BC |
|
C154 |
POP HL |
|
C155 |
POP AF |
|
C156 |
RET |