Routines |
Prev: F3E6 | Up: Map | Next: F410 |
Continues from F3D7. Makes ERIC sit on a chair (if he's standing beside one) or on the floor.
|
||||||||
F3FC | CALL $65D4 | Check for chairs next to ERIC | ||||||
F3FF | AND A | Is ERIC standing beside one, facing left? | ||||||
F400 | JR Z,$F40B | Jump if so | ||||||
F402 | LD A,($D200) | A=ERIC's animatory state | ||||||
F405 | AND $80 | Keep only the 'direction' bit (bit 7) | ||||||
F407 | ADD A,$05 | A=0x05/0x85: ERIC sitting on the floor | ||||||
F409 | JR $F3E8 | Sit ERIC on the floor | ||||||
F40B | CALL $663F | Knock anybody who's sitting in this chair out of the way | ||||||
F40E | JR $F3E6 | Sit ERIC on the chair |
Prev: F3E6 | Up: Map | Next: F410 |