28436 | 3A00D2 | LD A,(53760) | A=ERIC's animatory state |
28439 | CB7F | BIT 7,A | Is ERIC facing left? |
28441 | CA386E | JP Z,28216 | Turn ERIC round if so |
28444 | CD506E | CALL 28240 | Is ERIC on a staircase? |
28447 | 3804 | JR C,28453 | Jump if so |
28449 | 1C | INC E | Move ERIC one space to the right |
28450 | C39B6E | JP 28315 | Check for walls and closed doors in ERIC's path |
28453 | 17 | RLA | Does the staircase ERIC's on go up and to the right? |
28454 | DA626F | JP C,28514 | Go up a stair if so |
28457 | C3BE6F | JP 28606 | Otherwise go down a stair |