Prev: 48757 Up: Map Next: 49038
48976: Routine at BF50
Used by the routine at StartGame.
48976 LD IX,50030 IX=50030.
Check for Game Over "reasons" (see Immunity).
48980 LD A,(IX+23) A=*IX+23.
48983 AND %00000111 Keep only bits 0-2.
48985 RET NZ Return if A is not zero.
48986 LD L,(IX+16) L=*IX+16.
48989 LD H,(IX+17) H=*IX+17.
48992 LD A,(IX+19) A=*IX+19.
48995 BIT 5,A Jump to 49014 if bit 5 of A is not set.
48997 JR Z,49014
48999 BIT 3,A Jump to 49014 if bit 3 of A is set.
49001 JR NZ,49014
49003 BIT 7,(HL) Jump to 49017 if bit 7 of *HL is set.
49005 JR NZ,49017
49007 DEC L Decrease L by one.
49008 BIT 4,A Jump to 49014 if bit 4 of A is not set.
49010 JR Z,49014
49012 INC L Increment L by two.
49013 INC L
49014 BIT 7,(HL) Return if bit 7 of *HL is not set.
49016 RET Z
49017 LD A,L A=L.
49018 AND %00011111 Keep only bits 0-4.
49020 CP 12 Jump to Handler_HitByBike if A is lower than 12.
49022 JR C,Handler_HitByBike
49024 CP 20 Jump to Handler_HitByBike if A is higher than 20.
49026 JR NC,Handler_HitByBike
49028 POP HL Restore HL from the stack.
49029 LD HL,45064 HL=45064.
49032 SET 0,(HL) Set bit 0 of *HL.
49034 CALL 49055 Call 49055.
49037 RET Return.
Prev: 48757 Up: Map Next: 49038