DRAW_TILES |
58658 |
LD A,(59785) |
|
58661 |
AND A |
|
58662 |
JP Z,DRAW_TILES_0 |
|
58665 |
DEC A |
|
58666 |
LD (59785),A |
|
58669 |
LD DE,36832 |
|
58672 |
LD (IX+0),127 |
|
58676 |
INC IX |
|
58678 |
RET |
DRAW_TILES_0 |
58679 |
LD DE,(59783) |
|
58683 |
LD A,(DE) |
|
58684 |
INC DE |
|
58685 |
LD (59783),DE |
|
58689 |
BIT 7,A |
|
58691 |
JR Z,GET_ADDRESS_OF_TILE_GRAPHIC |
|
58693 |
AND 127 |
|
58695 |
CP 127 |
|
58697 |
JR NZ,DRAW_TILES_1 |
|
58699 |
INC A |
DRAW_TILES_1 |
58700 |
INC A |
|
58701 |
LD (59785),A |
|
58704 |
JP DRAW_TILES |
GET_ADDRESS_OF_TILE_GRAPHIC |
58707 |
PUSH HL |
|
58708 |
LD HL,32768 |
|
58711 |
LD D,A |
|
58712 |
LD E,0 |
|
58714 |
SRL D |
|
58716 |
RR E |
|
58718 |
SRL D |
|
58720 |
RR E |
|
58722 |
SRL D |
|
58724 |
RR E |
|
58726 |
ADD HL,DE |
|
58727 |
EX DE,HL |
|
58728 |
POP HL |
|
58729 |
LD (IX+0),A |
|
58732 |
INC IX |
|
58734 |
RET |