Prev: 6D7D Up: Map Next: 6E25
6D87: Routine at 6D87
6D87 DEFB $01,$47
6D89 LD A,(IX+$00) A=IX+00.
6D8C PUSH AF Stash AF on the stack.
6D8D CP $07
6D8F JR NZ,$6D97
6D91 LD A,($5F29)
6D94 AND A
6D95 JR Z,$6DF0
6D97 LD A,(IX+$05)
6D9A AND A
6D9B JR NZ,$6DB6
6D9D INC (IX+$05)
6DA0 LD A,(IX+$04)
6DA3 LD (IX+$00),A
6DA6 CALL $7617 Call 7617.
6DA9 POP AF Restore AF from the stack.
6DAA LD (IX+$00),A
6DAD RET Return.
1
6DAE LD A,$02 A=02.
6DB0 JR $6DD3 Jump to 6DD3.
2
6DB2 LD A,$01 A=01.
6DB4 JR $6DD3 Jump to 6DD3.
2
6DB6 LD A,(IX+$04)
6DB9 LD (IX+$00),A
6DBC CALL $76D0 Call 76D0.
6DBF LD A,($5F1D)
6DC2 AND %00000011 Keep only bits 0-1.
6DC4 JR NZ,$6DD9
6DC6 LD A,(IX+$04)
6DC9 CP $01
6DCB JR Z,$6DAE
6DCD CP $02
6DCF JR Z,$6DB2
6DD1 XOR $01
6DD3 LD (IX+$04),A
6DD6 LD (IX+$00),A
6DD9 LD A,(IX+$01)
6DDC SUB $02
6DDE LD (IX+$01),A
6DE1 CP $90
6DE3 CALL C,$6E11
6DE6 CP $F8
6DE8 JR NC,$6E03
6DEA CALL $75CC Call 75CC.
6DED CALL $74EE Call 74EE.
3
6DF0 POP AF Restore AF from the stack.
6DF1 LD (IX+$00),A
6DF4 LD A,($5C78) A=FRAMES.
6DF7 AND %00000111 Keep only bits 0-2.
6DF9 RET NZ
6DFA LD A,(IX+$03)
6DFD CP $47
6DFF RET NZ
6E00 JP LevelStartJingle
6E03 CALL $7607
6E06 LD (IX+$00),$00
6E0A POP AF
6E0B CP $07
6E0D JP Z,$5FE1
6E10 RET Return.
6E11 LD A,($5F29)
6E14 AND A
6E15 RET NZ
6E16 INC A
6E17 LD ($5F29),A
6E1A LD HL,$5F35 HL=BufferNasties.
6E1D LD DE,$6D87 DE=6D87.
6E20 LD C,$07 C=07.
6E22 JP $6D67 Jump to 6D67.
Prev: 6D7D Up: Map Next: 6E25