Prev: 61811 Up: Map Next: 61879
61857: Script Routine: (18) Position put-down entity to the left
Place the put-down entity to the carrier's left.
Input
IX Address of complex state data for an entity
ScriptRoutine_PlacePutDownLeft 61857 BIT 4,(IX+3) Is bit 4 of flags byte 3 (IX+3) set? If not, jump to AdvanceScriptInstruction.
61861 JP Z,AdvanceScriptInstruction
61864 LD A,(29421) Load A with the saved held-entity width from CameraYCoordinate.
61867 LD D,A Copy A into D as a saved coordinate / value.
61868 INC A Step the put-down placement index on by one.
61869 SRL A Shift A right logical.
61871 LD E,A Copy A into E as a saved coordinate / value.
61872 XOR A Clear A to 0.
61873 SUB E Subtract E from A.
61874 ADD A,(IX+7) Add the entity byte at offset 7 to A.
61877 JR ScriptRoutine_PlacePutDownLeft_WritePutDown Jump to ScriptRoutine_PlacePutDownLeft_WritePutDown to script Routine 12 Write Put Down.
Prev: 61811 Up: Map Next: 61879