; Buster Brown John J. Allsopp II 07/03/02 ; ; This robot is a perfect example of a lightweight bot. Notice how it ; does not control it's own heat. Instead, the heat is regulated easily ; by using an exeptionally weak weapon and a slow but simple targetting ; calculation. #config weapon=1 #config scanner=3 #config engine=4 #config heatsinks=2 #msg Jesus Lives! mov ax, 1 int 3 !begin mov dx, 64 !start opo 11, 100 opo 17, dx ipo 7, fx cmp fx 2000 ja !decide !track ;Someone was found mov bx, dx mpy bx, @3 sar bx, 1 opo 12, bx cmp dx, 2 jbe !fire shr dx, 1 !fire opo 15, @3 ; Set course towards target mov bx, @1 ipo 3, ax add ax, @2 cmp fx 120 jae !turn add ax, 64 !turn and ax, 255 sub ax, bx opo 14, ax jmp !start ;Decides what to do if no one found !decide cmp dx 64 jae !flip shl dx 1 jmp !start !flip opo 12 128 opo 14 8 ; jmp !start ;program starts over automatically when it runs past the end.