Back to Skool Routines
23887: 'J' pressed - jump
The address of this routine is found in the keypress table at 58624.
23887 CALL 28240 Is ERIC on a staircase?
23890 RET C Return if so
23891 LD HL,32763 Set bit 0 of ERIC's status flags at 32763, triggering a jump to 23907 next time we deal with ERIC
23894 INC (HL)
23895 LD H,210 210=ERIC
23897 CALL 25012 Update SRB for ERIC's current animatory state and location
23900 AND 128 A=7 or 135: animatory state of ERIC jumping
23902 ADD A,7
23904 DEC D ERIC will rise one level
23905 JR 23937 Update SRB for ERIC's new animatory state and location