Prev: EF91 Up: Map Next: F104
EFC7: Routine at EFC7
EFC7 LD A,(IY+$05)
EFCA SUB $08
EFCC CP $E0
EFCE JR C,$EFD2
EFD0 LD A,$E0
EFD2 SRL A
EFD4 SRL A
EFD6 SRL A
EFD8 LD E,A
EFD9 LD D,$17
EFDB LD HL,$7F16
EFDE CALL Switch_DrawSprite_Functions
EFE1 LD A,(IY+$0A)
EFE4 ADD A,$04
EFE6 CP $A0
EFE8 JR C,$EFEC
EFEA LD A,$A0
EFEC LD (IY+$0A),A
EFEF CALL $81AE
EFF2 LD A,(IY+$0A)
EFF5 CP $A0
EFF7 JR NZ,$EFE1
EFF9 LD (IY+$00),$00
EFFD LD A,(IY-$3C)
F000 OR A
F001 CALL NZ,$81D4
F004 LD A,$F0
F006 LD ($F0BD),A
F009 LD HL,$F0B7
F00C CALL Clear_PlayArea
F00F CALL DrawRoom_Loop
F012 LD (IY+$05),$DA
F016 LD (IY+$0A),$3C
F01A LD A,(IY+$0A)
F01D CP $98
F01F JR Z,$F026
F021 ADD A,$04
F023 LD (IY+$0A),A
F026 CALL $EEA2
F029 CALL $F057
F02C CALL $F0C0
F02F CALL WriteSprite_ShadowBuffer
F032 CALL ShadowBufferToScreen
F035 LD A,(IY+$05)
F038 OR A
F039 JR NZ,$F01A
F03B LD (IY+$0F),$1F
F03F LD (IY+$05),$F0
F043 JP $EE8D
F046 NOP
This entry point is used by the routine at F177.
F047 EXX
F048 XOR $01
F04A LD ($F046),A
F04D LD DE,$88F8
F050 LD BC,$00C0
F053 CALL $81E3
F056 RET
F057 LD A,($F046)
F05A OR A
F05B CALL NZ,$F047
F05E LD HL,($F0BD)
F061 LD H,$98
F063 LD A,$30
F065 LD ($A838),HL
F068 CALL $A8A0
F06B LD H,$A8
F06D LD ($A838),HL
F070 LD A,($F3A0)
F073 XOR $02
F075 LD ($F3A0),A
F078 CALL $A8A0
F07B LD A,$0C
F07D LD ($F26E),A
F080 CALL $E329
F083 LD A,(IY+$0A)
F086 CP $98
F088 RET NZ
F089 LD HL,$F0BD
F08C LD A,(HL)
F08D SUB (IY+$05)
F090 SUB $01
F092 CP $FE
F094 JR NC,$F09A
F096 LD A,(HL)
F097 SUB $02
F099 LD (HL),A
F09A LD A,(HL)
F09B SUB (IY+$05)
F09E SUB $0C
F0A0 CP $E0
F0A2 JR C,$F0AE
F0A4 INC (HL)
F0A5 LD A,($F0E4)
F0A8 INC A
F0A9 CP $05
F0AB RET Z
F0AC JR $F0B3
F0AE LD A,($F0E4)
F0B1 DEC A
F0B2 RET Z
F0B3 LD ($F0E4),A
F0B6 RET
F0B7 ADD A,B
F0B8 RLCA
F0B9 LD (HL),L
F0BA INC BC
F0BB LD A,A
F0BC NOP
F0BD RET P
F0BE INC B
F0BF NOP
F0C0 LD A,(IY+$0A)
F0C3 CP $98
F0C5 RET NZ
F0C6 CALL Controls_Left
F0C9 LD C,A
F0CA CALL Controls_Right
F0CD LD B,A
F0CE LD A,($F0BF)
F0D1 OR A
F0D2 JR NZ,$F0DB
F0D4 LD A,B
F0D5 OR A
F0D6 JR NZ,$F0FB
F0D8 LD A,C
F0D9 JR $F0E0
F0DB LD A,C
F0DC OR A
F0DD JR NZ,$F0FB
F0DF LD A,B
F0E0 OR A
F0E1 JR Z,$F0FB
F0E3 LD A,$05
F0E5 LD ($F0BE),A
This entry point is used by the routine at F10E.
F0E8 LD A,($F0BF)
F0EB XOR $01
F0ED LD ($F0BF),A
F0F0 LD (IY+$3C),$FF
F0F4 LD (IY+$41),$FF
F0F8 JP $B288
F0FB LD HL,$F0BE
F0FE LD A,(HL)
F0FF OR A
F100 RET Z
F101 DEC (HL)
F102 JR $F0F0
Prev: EF91 Up: Map Next: F104