Routines 
Prev: $3472  Up: Map  Next: $350A 
$34B5  LDA $26  Pick up ERIC's animatory state from $26.  
$34B7  AND #$04  Is bit 2 set, indicating that ERIC is sitting or lying down?  
$34B9  BNE $3509  Return if so.  
$34BB  JSR $1C8E  Is ERIC on a staircase?  
$34BE  BCC $34D6  Branch if not.  
$34C0  LDA $FC  Pick up ERIC's xcoordinate from $FC.  
$34C2  CMP #$30  Is ERIC on a staircase on the right side of the skool?  
$34C4  BCS $34CE  Branch if so.  
$34C6  LDA $26  Pick up ERIC's animatory state from $26.  
$34C8  ASL A  Is ERIC facing right?  
$34C9  BCS $34F3  Branch if so.  
$34CB  JMP $364E  Otherwise turn ERIC round to make him face right.  
$34CE  LDA $26  Pick up ERIC's animatory state from $26.  
$34D0  ASL A  Is ERIC facing left?  
$34D1  BCC $34F3  Branch if so.  
$34D3  JMP $364E  Otherwise turn ERIC round to make him face left.  
$34D6  LDA $FB  Pick up ERIC's ycoordinate from $FB.  
$34D8  CMP #$11  Is ERIC on the bottom floor?  
$34DA  BEQ $34FE  Branch if so.  
$34DC  LDA $26  Pick up ERIC's animatory state from $26.  
$34DE  ASL A  Is ERIC facing right?  
$34DF  BCS $34EA  Branch if so.  
$34E1  LDA $FC  Pick up ERIC's xcoordinate from $FC.  
$34E3  CMP #$4D  Is ERIC at the top of a staircase on the right side of the skool?  
$34E5  BEQ $34F3  Branch if so.  
$34E7  JMP $3558  Otherwise move ERIC left.  
$34EA  LDA $FC  Pick up ERIC's xcoordinate from $FC.  
$34EC  CMP #$0C  Is ERIC at the top of a staircase on the left side of the skool?  
$34EE  BEQ $34F3  Branch if so.  
$34F0  JMP $359E  Otherwise move ERIC right.  
$34F3  LDA #$01  Store 1 at $11. This is ERIC's postmidstride ycoordinate increment: down one step.  
$34F5  STA $11  
$34F7  LDA #$00  Store 0 at $10. This is ERIC's midstride ycoordinate increment for his next movement.  
$34F9  STA $10  
$34FB  JMP $365C  Move ERIC midstride.  
This entry point is used by the routine at $350B.


$34FE  LDA $26  Pick up ERIC's animatory state from $26.  
$3500  ASL A  Is ERIC facing right?  
$3501  BCS $3506  Branch if so.  
$3503  JMP $3558  Otherwise move ERIC left.  
$3506  JMP $359E  Move ERIC right.  
$3509  RTS 
Prev: $3472  Up: Map  Next: $350A 