![]() |
Routines |
| H | Character number (152-169) |
| 27772 | CALL 25108 | Update SRB for current location of character |
| 27775 | LD C,A | Store character's animatory state in C temporarily |
| 27776 | BIT 0,A | Is the character midstride? |
| 27778 | JP NZ,25434 | Jump if so |
| 27781 | CALL 27632 | Is the character standing beside a chair? |
| 27784 | JP Z,27517 | If so, knock the current occupant (if any) to the floor, make this character sit down, and remove the address of this routine from bytes 111 and 112 of his buffer |
| 27787 | LD A,C | Restore character's animatory state to A |
| 27788 | NOP | |
| 27789 | JR NC,27794 | Jump unless the character should turn round |
| 27791 | XOR 128 | Flip bit 7 of the animatory state |
| 27793 | DEC A | |
| 27794 | INC A | A=character's new animatory state |
| 27795 | JP 25008 | Update character's animatory state and location and update SRB |