![]() |
Routines |
| A | ERIC's next animatory state (midstride) |
| B | ERIC's post-midstride animatory state |
| DE | ERIC's post-midstride coordinates |
| HL | ERIC's midstride coordinates |
| 25916 | PUSH HL | Store ERIC's midstride animatory state and coordinates briefly |
| 25917 | PUSH AF | |
| 25918 | LD HL,44131 | Point HL at byte 99 of ERIC's buffer |
| 25921 | LD (HL),B | Store ERIC's post-midstride animatory state and coordinates in bytes 99, 100 and 101 of ERIC's buffer |
| 25922 | INC L | |
| 25923 | LD (HL),D | |
| 25924 | INC L | |
| 25925 | LD (HL),E | |
| 25926 | CALL 25108 | Update SRB for ERIC's current location |
| 25929 | POP AF | Restore ERIC's midstride animatory state and location to A and DE |
| 25930 | POP DE | |
| 25931 | CALL 25008 | Update ERIC's animatory state and location and update SRB |
| 25934 | LD L,4 | |
| 25936 | LD A,(32764) | The routine at 63056 resets bit 5 at 32764; otherwise it will always be set |
| 25939 | BIT 5,A | |
| 25941 | JR Z,25945 | Jump if ERIC is writing on a blackboard (with L=4) |
| 25943 | LD L,9 | |
| 25945 | LD H,L | Set appropriate values for the keypress response delay counter (32744) and midstride indicator (32745) |
| 25946 | LD (32744),HL | |
| 25949 | JP 65106 | Make a walking (or writing-on-board) sound effect |