Routines

23887: 'J' pressed - jump


The address of this routine is found in the keypress table at 58624

23887 CD506E CALL 28240 Is ERIC on a staircase?
23890 D8 RET C Return if so
23891 21FB7F LD HL,32763 Set bit 0 at 32763, triggering a jump to 23907 next time we deal with ERIC
23894 34 INC (HL)
23895 26D2 LD H,210 210=ERIC
23897 CDB461 CALL 25012 Update SRB for ERIC's current animatory state and location
23900 E680 AND 128
23902 C607 ADD A,7 A=7 or 135: animatory state of ERIC jumping
23904 15 DEC D ERIC will rise one level
23905 181E JR 23937