PSHI 0 ; Load a zero onto the stack POP R ; and store it to the R register. LOOP: ; Label of start of loop. PUSH R ; Load current R. PSHI 100 ; Load the constant 100. ADD ; Add 'em together. POP R ; Store back to R. LOOK: ; Look at target. PUSH R ; Load current R. POP RADAR ; Move radar turret. PUSH RADAR ; Load target distance. PSHI 0 ; Now, test to see if we're JLT LOOP ; looking at a wall (loop) ; or a droid (shoot). SHOOT: ; Shoot the bleeper. PUSH R ; Load current angle. POP TURRET ; Move gun turret around. PUSH TURRET ; Load current turret temp. PSHI 100 ; Load max shoot temp. JGT LOOK ; Loop if too hot. PUSH RADAR ; Load the distance again. POP SHOT ; Shoot the gun. JMP LOOK ; Go back and scan again.