Prev: 5EE8 Up: Map Next: 5F1C
5F08: Make HAYLEY hit ERIC
The address of this uninterruptible subcommand routine is placed into bytes 0x11 and 0x12 of HAYLEY's buffer by the routine at 5F1C when ERIC has tried to steal one kiss too many.
Input
A 0x5F (MSB of the address of this routine)
H 0xD1 (HAYLEY)
5F08 LD ($7FF3),A Place a large value into ERIC's main action timer at 7FF3 to ensure that he will not have time to escape HAYLEY's fist
5F0B CALL $61B4 Update the SRB for HAYLEY's current animatory state
5F0E LD L,$14 Store HAYLEY's current animatory state in byte 0x14 of her buffer for the time being
5F10 LD (HL),A
5F11 OR $07 A=0x3F/0xBF: HAYLEY with her arm up (as if hitting ERIC)
5F13 CALL $7746 Update HAYLEY's animatory state, update the SRB, and return to 5F16 (below) next time
5F16 CALL $7529 Knock ERIC over
5F19 JP $77BA Restore HAYLEY's original animatory state and update the SRB
Prev: 5EE8 Up: Map Next: 5F1C