Prev: 6A73 Up: Map Next: 6BD0
6A98: Routine at 6A98
6A98 CALL $64ED Call 64ED.
6A9B DEC E Decrease E by one.
6A9C JP Z,$6A73 Jump to 6A73 if E is zero.
6A9F CALL $6A42 Call 6A42.
6AA2 DEC E
6AA3 JR NZ,$6AAA
6AA5 LD A,C
6AA6 AND A
6AA7 JP NZ,$6B20
6AAA BIT 3,(IX+$04)
6AAE JP NZ,$6B3A
6AB1 CALL $644D
6AB4 DEC E
6AB5 JP Z,$679C
6AB8 LD A,(IX+$05) If the stunned slug timer is zero, jump to 6AC3.
6ABB AND A
6ABC JR Z,$6AC3
6ABE DEC (IX+$05) Decrease the stunned slug timer by one.
6AC1 JR $6AF9 Jump to 6AF9.
6AC3 LD A,($5E17)
6AC6 AND $03
6AC8 JR NZ,$6AF9
6ACA LD A,(IX+$01)
6ACD CP $18
6ACF JR C,$6AE7
6AD1 CP $D0
6AD3 JR NC,$6AE7
6AD5 LD A,(IX+$02)
6AD8 BIT 7,(IX+$00)
6ADC JR Z,$6AFC
6ADE ADD A,$01
6AE0 CP $B8
6AE2 JR NC,$6B08
6AE4 LD (IX+$02),A
6AE7 LD A,(IX+$01)
6AEA BIT 6,(IX+$00)
6AEE JR Z,$6B0E
6AF0 ADD A,$04
6AF2 CP $D0
6AF4 JR NC,$6B1A
6AF6 LD (IX+$01),A
6AF9 JP $6F31
6AFC SUB $01
6AFE CP $28
6B00 JR NC,$6AE4
6B02 SET 7,(IX+$00)
6B06 JR $6AE7
6B08 RES 7,(IX+$00)
6B0C JR $6AE7
6B0E SUB $04
6B10 CP $18
6B12 JR NC,$6AF6
6B14 SET 6,(IX+$00)
6B18 JR $6AF9
6B1A RES 6,(IX+$00)
6B1E JR $6AF9
6B20 AND $3F
6B22 CP $12
6B24 JR Z,$6B34
6B26 CP $08
6B28 JP Z,$6AAA
6B2B LD BC,$0035
6B2E CALL AddPointsToScore
6B31 JP $65DC
6B34 CALL $65CB
6B37 JP $6AAA
This entry point is used by the routines at 64FA and 67AE.
6B3A INC (IX+$05)
6B3D LD A,($5E3B)
6B40 INC A
6B41 LD ($5E3B),A
6B44 BIT 3,(IX+$05)
6B48 LD A,(IX+$06)
6B4B JR NZ,$6B4E
6B4D DEC A
6B4E LD (IX+$02),A
6B51 LD A,($5E8E)
6B54 SRL A
6B56 SUB $02
6B58 LD C,A
6B59 LD A,(IX+$02)
6B5C SRL A
6B5E SUB C
6B5F JP NC,$6AF9
6B62 RES 3,(IX+$04)
6B66 XOR A
6B67 LD (IX+$05),A
6B6A LD (IX+$06),A
6B6D JP $6AF9
This entry point is used by the routine at 6EF1.
6B70 LD A,($5C78)
6B73 AND $07
6B75 RET NZ
6B76 LD HL,$5E7C
6B79 LD DE,$0008
6B7C LD B,$02
6B7E LD A,(HL)
6B7F AND A
6B80 JR Z,$6B86
6B82 ADD HL,DE
6B83 DJNZ $6B7E
6B85 RET
6B86 LD ($5E1C),HL
6B89 LD DE,$5E6F
6B8C LD A,(DE)
6B8D CP $42
6B8F JP Z,$69BB
6B92 CP $46
6B94 JP Z,$6974
6B97 CALL $696B
6B9A JR Z,$6BC7
6B9C CP $30
6B9E RET C
6B9F SUB $0C
6BA1 LD (HL),$44
6BA3 LD B,$47
This entry point is used by the routines at 67AE and 698F.
6BA5 INC HL
6BA6 LD (HL),A
6BA7 INC DE
6BA8 INC HL
6BA9 LD A,(DE)
6BAA SUB $0C
6BAC LD (HL),A
6BAD INC HL
6BAE LD (HL),B
6BAF INC HL
6BB0 XOR A
6BB1 LD (HL),A
6BB2 INC HL
6BB3 LD (HL),A
6BB4 LD HL,($5E1C)
6BB7 LD A,(HL)
6BB8 AND $3F
6BBA CP $08
6BBC JP Z,$649E
6BBF CP $12
6BC1 JP Z,$64B8
6BC4 JP $64C9
6BC7 CP $C0
6BC9 RET NC
6BCA ADD A,$18
6BCC LD (HL),$04
6BCE JR $6BA3
Prev: 6A73 Up: Map Next: 6BD0