Prev: 9EA7 Up: Map Next: 9ED2
9EB8: Script routine: (02) Move entity left one character, and into new room if appropriate
Used by the routines at A828 and CBCD.
Input
IX Address of complex state data for an entity
9EB8 DEC (IX+$05) Decrease x-coordinates of entity left and right edges by one character.
9EBB DEC (IX+$07)
9EBE BIT 4,(IX+$09) If entity is Flunky and his carrying-something flag is reset then jump to AdvanceScriptInstruction (advance HL to next script instruction and execute).
9EC2 JP Z,AdvanceScriptInstruction
9EC5 LD IY,($6DC0) Load IY with address of complex state data for entity held by Flunky and decrease its left and right x-coordinates by one character.
9EC9 DEC (IY+$05)
9ECC DEC (IY+$07)
9ECF JP AdvanceScriptInstruction Advance HL to next script instruction and execute.
Prev: 9EA7 Up: Map Next: 9ED2