Prev: 62AE Up: Map Next: 62F7
62CB: Switch to a new sector
Used by the routines at 65B3 and 69E3.
62CB LD A,$02 Reset back to two enemy bikes
62CD LD ($5DD2),A
62D0 LD HL,$5DCB Reset flag for bonus enemy appearing
62D3 RES 5,(HL)
62D5 LD A,($5DD3) Flip from day to night
62D8 RRCA
62D9 LD ($5DD3),A Get the day / night flag
62DC BIT 0,A Is this night patrol?
62DE JP NZ,$6113 Jump if it is
62E1 LD A,($5DCA) It's day patrol, is there a bonus enemy on screen?
62E4 CP $00
62E6 JR Z,$62F0 Jump forward if there isn't
62E8 CALL $633A Scroll the enemy forward and redraw it, and keep going until it's off screen
62EB CALL $5F89
62EE JR $62E1
62F0 XOR A Set no bonus enemies on screen
62F1 LD ($5DCA),A
62F4 JP $60C1 Move to day patrol
Prev: 62AE Up: Map Next: 62F7