Prev: 7744 Up: Map Next: 774F
7746: Initialise an uninterruptible subcommand
Used by the routines at 5F08, 6D00, 76AC, 775B, 77B3, 7813, 7854, F2E2, F862, F939, F9AB and FA4D to place the address of the instruction following CALL 7746 into bytes 0x11 and 0x12 of the character's buffer. Thus that address becomes the address of the character's current uninterruptible subcommand routine.
Input
A Character's new animatory state
DE Character's new coordinates
H Character number (0xB7-0xD6)
7746 POP BC Get the return address in BC
7747 LD L,$11 Place it into bytes 0x11 and 0x12 of the character's buffer
7749 LD (HL),C
774A INC L
774B LD (HL),B
774C JP $6130 Update the character's animatory state and location and update the SRB
Prev: 7744 Up: Map Next: 774F