Prev: A014 Up: Map Next: A0A9
A07B: Invalidate a lift
Used by the routine at A014.
Input
HL Screen position to invalidate
A07B PUSH HL
A07C DEC HL
A07D LD (HL),$00
A07F INC HL
A080 INC HL
A081 INC HL
A082 LD A,L
A083 AND $1F
A085 JR Z,$A089
A087 LD (HL),$00
A089 POP HL
A08A LD B,$04
A08C LD (HL),C
A08D INC L
A08E LD (HL),C
A08F DEC L
A090 CALL $A096
A093 DJNZ $A08C
A095 RET
A096 INC H
A097 LD A,H
A098 AND $07
A09A RET NZ
A09B LD A,H
A09C SUB $08
A09E LD H,A
A09F LD A,L
A0A0 ADD A,$20
A0A2 LD L,A
A0A3 RET NC
A0A4 LD A,H
A0A5 ADD A,$08
A0A7 LD H,A
A0A8 RET
Prev: A014 Up: Map Next: A0A9