Prev: 63581 Up: Map Next: 64691
64579: Routine at FC43
Used by the routine at 63581.
64579 LD HL,55354 HL=Time.
64582 BIT 0,(HL) Test bit 0 of *HL.
64584 JP Z,64676 Jump to 64676 if is zero.
64587 LD HL,55389 HL=TimeBar_Active.
64590 DEC (HL) Decrease *HL by one.
64591 JP NZ,64676 Jump to 64676 if *HL is not zero.
64594 LD (HL),75 Write 75 to *HL.
64596 LD HL,55354 HL=Time.
64599 BIT 5,(HL) Test bit 5 of *HL.
64601 JP Z,64621 Jump to 64621 if *HL is zero.
64604 LD A,5 A=5.
64606 LD D,50 D=50.
64608 LD E,80 E=80.
64610 XOR %00010000 Flip bit 4.
64612 OUT (254),A Set border to the colour held by A.
64614 LD B,D B=D.
64615 DJNZ 64615 Decrease counter by one and loop back to 64615 until counter is zero.
64617 DEC E Decrease E by one.
64618 JP NZ,64610 Jump to 64610 if E is not zero.
This entry point is used by the routine at LevelComplete.
64621 LD HL,(55387) HL=*TimeBar_CurrentPosition.
64624 LD B,4 B=4.
64626 SLA (HL) Shift *HL left (with carry).
64628 JP NC,64637 Jump to 64637 if E is higher.
64631 INC H Increment H by one.
64632 DJNZ 64626 Decrease counter by one and loop back to 64626 until counter is zero.
64634 JP 64676 Jump to 64676.
64637 LD A,(55390) A=*TimeBar_Length.
64640 DEC A Decrease A by one.
64641 JP Z,64667 Jump to 64667 if A is zero.
64644 LD (55390),A Write A to *TimeBar_Length.
64647 CP 3 Compare A with 3.
64649 JP P,64660 Jump to 64660 P.
64652 LD A,(55354) A=*Time.
64655 SET 5,A Set bit 5 of A.
64657 LD (55354),A Write A to *Time.
64660 DEC HL Decrease HL by one.
64661 LD (55387),HL Write HL to *TimeBar_CurrentPosition.
64664 JP 64626 Jump to 64626.
64667 LD HL,55354 HL=Time.
64670 SET 4,(HL) Set bit 4 of *HL.
64672 RES 0,(HL) Reset bit 0 of *HL.
64674 RES 5,(HL) Reset bit 5 of *HL.
64676 LD HL,55354 HL=Time.
64679 BIT 7,(HL) Test bit 7 of *HL.
64681 RET NZ Return if HL is not zero.
64682 POP IX Restore IX from the stack.
64684 POP HL Restore HL, DE, BC and AF from the stack.
64685 POP DE
64686 POP BC
64687 POP AF
64688 EI Enable interrupts.
64689 RETI Return from the interrupt routine.
Prev: 63581 Up: Map Next: 64691