![]() |
Routines |
| H | 152 (boy) or 164 (teacher) |
| 46312 | CALL 25108 | Update SRB for current location of character |
| 46315 | INC A | A=next animatory state |
| 46316 | LD C,A | Store this in C |
| 46317 | RRCA | Check bit 0 |
| 46318 | LD A,C | Restore animatory state to A |
| 46319 | JR C,46329 | Jump if the character is midstride |
| 46321 | INC E | Increment the character's x-coordinate |
| 46322 | AND 3 | |
| 46324 | LD A,C | Restore animatory state to A again |
| 46325 | JR NZ,46329 | Jump if the animatory state is at base + 2 |
| 46327 | SUB 4 | Reset the animatory state to the base |
| 46329 | CALL 25008 | Update character's animatory state and location and update SRB |
| 46332 | JP 27026 | Update display area |