Routines

57637: 'C' pressed - catch mouse/frog


The address of this routine is found in the keypress table at 58624

57637 3E27 LD A,39 39=ERIC bending over, facing left
57639 21557B LD HL,31573 The routine at 31573 deals with ERIC after 'C' has been pressed

This entry point is used by several routines:
57642 22D77F LD (32727),HL
57645 21FB7F LD HL,32763 Signal: ERIC bending over/firing water pistol/moving forward as if to kiss/dropping stinkbomb
57648 3608 LD (HL),8

This entry point is used by the routine at 24247:
57650 2100D2 LD HL,53760 HL=first byte of ERIC's buffer (page 210)
57653 010300 LD BC,3
57656 CB7E BIT 7,(HL) Is ERIC facing left?
57658 2802 JR Z,57662 Jump if so
57660 C680 ADD A,128 Set bit 7 of ERIC's new animatory state so he's still facing right
57662 54 LD D,H
57663 59 LD E,C DE points to byte 3 of ERIC's buffer
57664 EDB0 LDIR Copy bytes 0-2 of ERIC's buffer into bytes 3-5
57666 C3F4F3 JP 62452