Prev: ED13 Up: Map Next: EDA3
ED2A: Routine at ED2A
Used by the routine at GameLoop.
ED2A LD A,($ECF5) E=*ECF5*02.
ED2D ADD A,A
ED2E LD E,A
ED2F LD D,$00 D=00.
ED31 LD HL,$ECF6 HL=ECF6+DE.
ED34 ADD HL,DE
ED35 LD A,($ECFF) A=*ECFF.
ED38 SUB (HL)
ED39 INC HL
ED3A LD A,($ECFE)
ED3D SBC A,(HL)
ED3E RET C
ED3F LD BC,$0000
ED42 DEC BC
ED43 NOP
ED44 NOP
ED45 LD A,B
ED46 OR C
ED47 JR NZ,$ED42
ED49 CALL Clear_PlayArea
ED4C LD HL,$ED00 HL=ED00.
ED4F ADD HL,DE
ED50 LD E,(HL)
ED51 INC HL
ED52 LD D,(HL)
ED53 EX DE,HL
ED54 LD DE,$0000 DE=0000.
ED57 CALL PrintString Call PrintString.
ED5A CALL $B9AC Call B9AC.
ED5D CALL $EEA2 Call EEA2.
ED60 LD A,($ECF5)
ED63 ADD A,A
ED64 ADD A,$65
ED66 LD IX,$ED06 IX=ED06.
ED6A LD B,$03 B=03.
ED6C PUSH BC Stash BC on the stack.
ED6D LD BC,$F5CA BC=F5CA.
ED70 CALL $EF35 Call EF35.
ED73 CALL $A8A0 Call A8A0.
ED76 POP BC
ED77 DJNZ $ED6C
ED79 CALL ShadowBufferToScreen Call ShadowBufferToScreen.
ED7C CALL Controls_ExitScreen Call Controls_ExitScreen.
ED7F OR A
ED80 JR Z,$ED5D
ED82 LD HL,$ECF5 Incremnt *ECF5 by one.
ED85 INC (HL)
ED86 CALL DrawRoom Call DrawRoom.
ED89 RET Return.
This entry point is used by the routines at ED13 and F177.
ED8A LD IX,$ED06
ED8E LD B,$03
ED90 PUSH BC
ED91 LD BC,$F5CA
ED94 CALL $EF35
ED97 CALL $A8A0
ED9A PUSH AF
ED9B CALL $E329
ED9E POP AF
ED9F POP BC
EDA0 DJNZ $ED90
EDA2 RET
Prev: ED13 Up: Map Next: EDA3