![]() |
Routines |
| Prev: $350B | Up: Map | Next: $359E |
| $3558 | LDA $26 | Pick up ERIC's animatory state from $26. | ||
| $355A | AND #$04 | Is bit 2 set, indicating that ERIC is sitting or lying down? | ||
| $355C | BNE $359D | Return if so. | ||
| $355E | LDA $26 | Pick up ERIC's animatory state from $26. | ||
| $3560 | ASL A | Is ERIC facing left? | ||
| $3561 | BCC $3566 | Branch if so. | ||
| $3563 | JMP $364E | Otherwise turn ERIC round to make him face left. | ||
| $3566 | JSR $1C8E | Is ERIC on a staircase? | ||
| $3569 | BCC $3577 | Branch if not. | ||
| $356B | LDA $FC | Pick up ERIC's x-coordinate from $FC. | ||
| $356D | CMP #$30 | Is ERIC on a staircase on the right side of the skool? | ||
| $356F | BCS $3574 | Branch if so. | ||
| $3571 | JMP $350B | Move ERIC up a step. | ||
| $3574 | JMP $34B5 | Move ERIC down a step. | ||
| $3577 | LDA $FC | Pick up ERIC's x-coordinate from $FC. | ||
| $3579 | BEQ $359D | Return if it's 0 (ERIC can't go any further left). | ||
| $357B | LDA $12 | Pick up ERIC's location indicator from $12. | ||
| $357D | CMP #$02 | Is ERIC on the top floor? | ||
| $357F | BNE $358A | Branch if not. | ||
| $3581 | LDA $FC | Pick up ERIC's x-coordinate from $FC. | ||
| $3583 | CMP #$3A | Is ERIC next to the Map Room wall? | ||
| $3585 | BEQ $359D | Return if so (ERIC can't walk through walls). | ||
| $3587 | JMP $3594 | Jump forward. | ||
| $358A | CMP #$01 | Is ERIC on the middle floor? | ||
| $358C | BNE $3594 | Branch if not. | ||
| $358E | LDA $FC | Pick up ERIC's x-coordinate from $FC. | ||
| $3590 | CMP #$27 | Is ERIC next to the Exam Room wall? | ||
| $3592 | BEQ $359D | Return if so (ERIC can't walk through walls). | ||
|
This entry point is used by the routine at $359E.
|
||||
| $3594 | LDA #$00 | Set ERIC's midstride and post-midstride y-coordinate increments at $10 and $11 to 0: ERIC will not move up or down. | ||
| $3596 | STA $10 | |||
| $3598 | STA $11 | |||
| $359A | JMP $365C | Move ERIC midstride. | ||
| $359D | RTS | |||
| Prev: $350B | Up: Map | Next: $359E |