Back to Skool Routines
26496: Move bike if it's obstructing boys' skool door or the gate
Used by the routine at 29052.
A Bike's animatory state
DE (96,17) or (136,17)
26496 AND 5 Is the bike lying on the floor?
26498 JR NZ,26510 Jump if not
26500 LD H,211 211=bike
26502 PUSH DE Save bike's new location temporarily
26503 CALL 25012 Update SRB for the bike's current animatory state and location
26506 POP DE Restore bike's new location to DE
26507 JP 24880 Update SRB for the bike's new location
The bike is not lying on the floor, so either ERIC is riding it, or it's travelling of its own accord. In this case, ALBERT must wait for it to pass before closing the skool door or gate.
26510 POP BC Drop the return address, which has the effect of making ALBERT wait
26511 RET