| Routines

F7D7: Place a continual subcommand routine address into a character's buffer

Used by command lists 0x20, 0x22, 0x24, 0x26, 0x28, 0x2A, 0x2C, 0x2E, 0x30, 0x32, 0x34, 0x36, 0x38 and 0x4C. Collects a continual subcommand routine address from the command list and places it into bytes 0x17 and 0x18 of the character's buffer. The routine address will be one of the following:
Address | Description
--- | ---
775B | Make BOY WANDER fire his catapult now and then
F4CC | Make ALBERT keep an eye out for ERIC during lessons
F7DF | Make ANGELFACE stalk HAYLEY
F804 | Make ANGELFACE or BOY WANDER hit or fire now and then
Input
H | Character number (0xCD-0xCF)
F7D7 | LD L,$17 | Collect the routine address from the command list and place it into bytes 0x17 and 0x18 of the character's buffer
F7D9 | CALL $6264
F7DC | JP $6381 | Move to the next command in the command list