![]() |
Routines |
| Prev: 43671 | Up: Map | Next: 43757 |
|
Used by the routine at MoveRobot.
Turns the robot a quarter of a turn, so that its direction goes down by one. The robot is moved to the start of the cell, and it gets one of the types for turning (32 to 47).
|
||||||||||
| TurnRobotLeft | 43731 | RES 1,A | Clear the bit of the controls for turning left... | |||||||
| 43733 | LD (38437),A | ...and store them. | ||||||||
| 43736 | LD A,(IX+0) | Fetch the type of the robot. | ||||||||
| 43739 | SUB 4 | Go back by one direction... | ||||||||
| 43741 | AND 13 | |||||||||
| 43743 | OR 32 | ...keep the bits that are used for the sprite and mark it as turning. | ||||||||
|
This entry point is used by the routine at TurnRobotRight.
|
||||||||||
| TurnRobot_Store | 43745 | LD (IX+0),A | Store the type of the robot. | |||||||
| 43748 | LD (IX+1),0 | Move the robot to the start of the cell in the X direction... | ||||||||
| 43752 | LD (IX+3),0 | ...and in the Y direction. | ||||||||
| 43756 | RET | Return. | ||||||||
| Prev: 43671 | Up: Map | Next: 43757 |