Prev: 43403 Up: Map Next: 43459
43423: Start Robot
Used by the routines at WinRound and StartGame.
Starts a new life. The robot is given the type that makes it wait, the number of lives goes down by one, the battery is filled up and the robot is shown on the map of the sectors.
StartRobot 43423 LD A,88 Set the type of the robot to 88, which makes it wait.
43425 LD (38544),A
43428 LD A,32 Set its timer to 32 frames.
43430 LD (38550),A
43433 LD HL,38539 Point HL at Lives.
43436 DEC (HL) ...and take one off.
43437 XOR A Clear the controls.
43438 LD (38437),A
43441 LD A,116 Fill up the battery.
43443 LD (38459),A
43446 LD DE,(38545) Fetch the X position of the robot...
43450 LD HL,(38547) ...and the Y position.
43453 CALL UpdateRobotMarker Draw the robot on the map of the sectors using UpdateRobotMarker.
43456 JP RechargeBattery Flash the panel using RechargeBattery.
Prev: 43403 Up: Map Next: 43459