Prev: ECBD Up: Map Next: ECF4
ECDD: Advance the laser by one frame
Used by the routines at E6F6 and E76C.
Input
HL Current screen position of laser
DE Current laser bolt graphic
A Colour to draw the laser with
ECDD PUSH HL Store HL and DE.
ECDE PUSH DE
ECDF LD (HL),A
ECE0 LD A,H
ECE1 AND $03
ECE3 RLCA
ECE4 RLCA
ECE5 RLCA
ECE6 OR $40
ECE8 LD H,A
ECE9 LD B,$08 8 lines to draw.
ECEB LD A,(DE) Get the UDG data.
ECEC LD (HL),A Copy it to screen.
ECED INC H Move forward a line.
ECEE INC DE Move forward in the graphic buffer.
ECEF DJNZ $ECEB Loop until all 8 lines are drawn.
ECF1 POP DE Restore HL and DE and return.
ECF2 POP HL
ECF3 RET
Prev: ECBD Up: Map Next: ECF4