| Routines

24328: Make HAYLEY hit ERIC

The address of this uninterruptible subcommand routine is placed into bytes 17 and 18 of HAYLEY's buffer by the routine at 24348 when ERIC has tried to steal one kiss too many.
Input
A | 95 (MSB of the address of this routine)
H | 209 (HAYLEY)
24328 | LD (32755),A | Place a large value into ERIC's main action timer at 32755 to ensure that he will not have time to escape HAYLEY's fist
24331 | CALL 25012 | Update the SRB for HAYLEY's current animatory state
24334 | LD L,20 | Store HAYLEY's current animatory state in byte 20 of her buffer for the time being
24336 | LD (HL),A
24337 | OR 7 | A=63/191: HAYLEY with her arm up (as if hitting ERIC)
24339 | CALL 30534 | Update HAYLEY's animatory state, update the SRB, and return to 24342 (below) next time
24342 | CALL 29993 | Knock ERIC over
24345 | JP 30650 | Restore HAYLEY's original animatory state and update the SRB