![]() |
Routines |
| Prev: AAD3 | Up: Map | Next: AAFD |
|
Used by the routine at MoveRobot.
Turns the robot a quarter of a turn, so that its direction goes up by one. The robot is moved to the start of the cell, and it gets one of the types for turning (20 to 2F).
|
||||||||||
| TurnRobotRight | AAED | RES 0,A | Clear the bit of the controls for turning right... | |||||||
| AAEF | LD ($9625),A | ...and store them. | ||||||||
| AAF2 | LD A,(IX+$00) | Fetch the type of the robot. | ||||||||
| AAF5 | ADD A,$04 | Go forward by one direction... | ||||||||
| AAF7 | AND $0F | |||||||||
| AAF9 | OR $22 | ...keep the bits that are used for the sprite and mark it as turning. | ||||||||
| AAFB | JR TurnRobot_Store | Jump to store the type and finish. | ||||||||
| Prev: AAD3 | Up: Map | Next: AAFD |