| Routines

29101: Move the bike if it's obstructing the skool gate

This is a branch of the routine at 29052.
Input
A | 8 (boys' skool door) or 16 (skool gate)
29101 | CP 16 | Is the skool gate being opened or closed?
29103 | JR NZ,29087 | Jump if not
29105 | LD A,(54017) | A=bike's x-coordinate
29108 | CP 133 | Is the bike to the left of the skool gate?
29110 | JR C,29087 | Jump if so
29112 | LD DE,4488 | E=136, D=17
29115 | JR 29078 | Move the bike if it's obstructing the skool gate