Prev: 44460 Up: Map Next: 44479
44466: Install Program
Used by the routine at UseActionKey_Up.
Adds a program to the sector that the robot is in, which gives the sector one more unit of energy, and awards 256 points to the score.
Input
IX Robot
InstallProgram 44466 CALL FindSectorEnergy Find the energy of the sector using FindSectorEnergy.
44469 INC (HL) Add one to it.
44470 PUSH BC Save BC.
44471 LD BC,256 Use 256 as the number of points...
44474 CALL AddPointsToScore ...and add them to the score using AddPointsToScore.
44477 POP BC Restore BC.
44478 RET Return.
Prev: 44460 Up: Map Next: 44479