Routines

28460: 'O' pressed - left


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

28460 3A00D2 LD A,(53760) A=ERIC's animatory state
28463 CB7F BIT 7,A Is ERIC facing right?
28465 C2386E JP NZ,28216 Turn ERIC round if so
28468 CD506E CALL 28240 Is ERIC on a staircase?
28471 3804 JR C,28477 Jump if so

This entry point is used by the routines at 28484 and 28576:
28473 1D DEC E Move ERIC left one space
28474 C39B6E JP 28315 Check for walls and closed doors in ERIC's path
28477 17 RLA Is ERIC on a staircase going up and to the right?
28478 DABE6F JP C,28606 Go down a stair if so
28481 C3626F JP 28514 Otherwise go up a stair