Back to Skool Routines
Prev: 30532 Up: Map Next: 30543
30534: Place stack return address into character's buffer
Used by the routines at 24328, 27904, 30380, 30555, 30643, 30739, 30804, 62178, 63586, 63801, 63915 and 64077 to place the address of the instruction following "CALL 30534" into bytes 17 and 18 of the character's buffer (so that it takes over control of the character from that point).
H Character number
30534 POP BC Get the return address in BC
30535 LD L,17 Place it in bytes 17 and 18 of the character's buffer
30537 LD (HL),C
30538 INC L
30539 LD (HL),B
30540 JP 24880 Update SRB for the character's new animatory state and location
Prev: 30532 Up: Map Next: 30543