![]() |
Routines |
28460 | LD A,(53760) | A=ERIC's animatory state |
28463 | BIT 7,A | Is ERIC facing right? |
28465 | JP NZ,28216 | Turn ERIC round if so |
28468 | CALL 28240 | Is ERIC on a staircase? |
28471 | JR C,28477 | Jump if so |
28473 | DEC E | E=x-coordinate of spot in front of ERIC |
28474 | JP 28315 | Check for walls and closed doors in ERIC's path |
28477 | RLA | Does the staircase ERIC's on go down and to the left? |
28478 | JP C,28606 | Go down a stair if so |
28481 | JP 28514 | Otherwise go up a stair |