Routines

23843: Deal with ERIC's descent from saddle of bike


This routine is called by the routine at 63405 when bit 6 at 32749 is set on its own by the routine at 29194 because ERIC has hit a wall or closed door while standing on the saddle of the bike

23843 3A01D2 LD A,(53761) A=ERIC's x-coordinate
23846 D680 SUB 128 Did ERIC hit the closed skool gate while standing on the saddle of the bike?
23848 FE10 CP 16
23850 9F SBC A,A A=255 if so, 0 otherwise
23851 C6FE ADD A,254 L=253 if ERIC hit skool gate, 254 otherwise (appropriate descent table)
23853 6F LD L,A
23854 269F LD H,159
23856 C3F5FB JP 64501