Prev: 40615 Up: Map Next: 40658
40632: Script routine: (2) Move entity left one character, and into new room if appropriate
Used by the routines at 43048 and 52173.
Input
IX Address of complex state data for an entity
40632 DEC (IX+5) Decrease x-coordinates of entity left and right edges by one character.
40635 DEC (IX+7)
40638 BIT 4,(IX+9) If entity is Flunky and his carrying-something flag is reset then jump to AdvanceScriptInstruction (advance HL to next script instruction and execute).
40642 JP Z,AdvanceScriptInstruction
40645 LD IY,(28096) Load IY with address of complex state data for entity held by Flunky and decrease its left and right x-coordinates by one character.
40649 DEC (IY+5)
40652 DEC (IY+7)
40655 JP AdvanceScriptInstruction Advance HL to next script instruction and execute.
Prev: 40615 Up: Map Next: 40658