![]() |
Routines |
| H | 204 (MISS TAKE) |
| 32379 | LD L,29 | Point HL at byte 29 of MISS TAKE's buffer |
| 32381 | LD A,205 | 205=ALBERT |
| 32383 | SET 7,(HL) | Set bit 7 at byte 29 of MISS TAKE's buffer, making her run |
| 32385 | LD (32757),A | Set the character number of the adult who last gave ERIC lines (stored at 32757) to 205 (ALBERT); this has the effect of making any teacher (including whoever last gave ERIC lines) available for lines-giving ASAP (see 32032 and 32062) |
| 32388 | LD L,0 | Point HL at byte 0 of MISS TAKE's character buffer |
| 32390 | BIT 0,(HL) | Is MISS TAKE midstride? |
| 32392 | JP NZ,25950 | Finish the stride if so |
| 32395 | LD L,29 | Set the zero flag if MISS TAKE should continue hounding ERIC |
| 32397 | BIT 0,(HL) |
| 32399 | LD L,1 | Collect the teacher's coordinates in DE |
| 32401 | LD E,(HL) | |
| 32402 | INC HL | |
| 32403 | LD D,(HL) | |
| 32404 | JR Z,32418 | Jump if this teacher is MISS TAKE and she should continue chasing ERIC |
| 32406 | CALL 25554 | Is the teacher on a staircase? |
| 32409 | JP NC,25488 | If not, stop chasing ERIC |
| 32412 | JP 25944 | Continue chasing ERIC |
| 32415 | NOP | |
| 32416 | NOP | |
| 32417 | NOP |
| 32418 | LD A,(53761) | A=ERIC's x-coordinate |
| 32421 | CP 138 | 138: Just to the right of the plant in the girls' playground |
| 32423 | JR NC,32429 | Jump if ERIC's to the right of this |
| 32425 | LD A,E | A=MISS TAKE's x-coordinate |
| 32426 | CP 137 | 137: where MISS TAKE stands on guard for the truant ERIC |
| 32428 | RET Z | Return if MISS TAKE is already here |
| 32429 | JP 25944 | Otherwise MISS TAKE continues chasing ERIC |