Prev: ADAC Up: Map Next: ADBF
ADB2: 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 0100 points to the score.
Input
IX Robot
InstallProgram ADB2 CALL FindSectorEnergy Find the energy of the sector using FindSectorEnergy.
ADB5 INC (HL) Add one to it.
ADB6 PUSH BC Save BC.
ADB7 LD BC,$0100 Use 0100 as the number of points...
ADBA CALL AddPointsToScore ...and add them to the score using AddPointsToScore.
ADBD POP BC Restore BC.
ADBE RET Return.
Prev: ADAC Up: Map Next: ADBF