Prev: DB83 Up: Map Next: DBB8
DB9B: Clear area after a horizontal sprite has moved
Used by the routine at D815.
DB9B LD A,($D72F) Put the Y co-ordinate in D.
DB9E LD D,A
DB9F LD A,($D813)
DBA2 LD C,A
DBA3 EX AF,AF'
DBA4 LD E,A
DBA5 EX AF,AF'
DBA6 PUSH HL
DBA7 PUSH BC
DBA8 AND A
DBA9 LD B,D
DBAA RR (HL)
DBAC INC HL
DBAD DJNZ $DBAA
DBAF DEC C
DBB0 JR NZ,$DBA8
DBB2 POP BC
DBB3 POP HL
DBB4 DEC E
DBB5 JR NZ,$DBA6
DBB7 RET
Prev: DB83 Up: Map Next: DBB8