Routines

32379: Make MISS TAKE chase ERIC (II)


The address of this routine is placed in bytes 9 and 10 of MISS TAKE's buffer by the routine at 32373

H 204 (MISS TAKE)

32379 2E1D LD L,29
32381 3ECD LD A,205
32383 CBFE SET 7,(HL) Signal: walk fast
32385 32F57F LD (32757),A
32388 2E00 LD L,0
32390 CB46 BIT 0,(HL) Is MISS TAKE midstride?
32392 C25E65 JP NZ,25950 Jump if so
32395 2E1D LD L,29
32397 CB46 BIT 0,(HL)

This entry point is used by the routines at 61595 and 62794 with the zero flag reset and H holding the character number of a teacher chasing ERIC:
32399 2E01 LD L,1
32401 5E LD E,(HL) E=teacher's x-coordinate
32402 23 INC HL
32403 56 LD D,(HL) D=teacher's y-coordinate
32404 280C JR Z,32418 Jump if this is MISS TAKE
32406 CDD263 CALL 25554 Is the teacher on a staircase?
32409 D29063 JP NC,25488 Jump if not
32412 C35865 JP 25944 Chase ERIC
32415 00 NOP
32416 00 NOP
32417 00 NOP

MISS TAKE is chasing ERIC, but she only chases so far.
32418 3A01D2 LD A,(53761) A=ERIC's x-coordinate
32421 FE8A CP 138 138: Just right of plant in girls' playground
32423 3004 JR NC,32429 Jump if ERIC's to the right of this
32425 7B LD A,E A=MISS TAKE's x-coordinate
32426 FE89 CP 137 137: where MISS TAKE stands on guard for the truant ERIC
32428 C8 RET Z Return if MISS TAKE is already here
32429 C35865 JP 25944 Otherwise continue chasing ERIC