home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
1,000 Games
/
Disc1.iso
/
ARCADE
/
ATROBS11
/
SAMPLE1.ATR
< prev
next >
Wrap
Text File
|
1992-02-10
|
1KB
|
84 lines
; Sample Robot #1
;
; variable declarations must appear before their first reference,
; but otherwise may be anywhere. They are used to figure out how
; to compile the program, but are not actually compiled into it.
;
; Define some variables..
#def accuracy
#def shoot
#def cool
#def start
; Let's give names to our subroutines...
set shoot 100
set cool 50
set start 1
; Settings
opo 13 0
opo 18 10
opo 20 1000
; 40% chance of turning on over-burn
ipo 10 az
cmp az 600
jls 1
opo 22 1
; ---------Main----------
:1
opo 11 0
opo 14 -9
ipo 2 az
sub cz az 200
jgr cool
ipo 7 az
sub cz az 5000
jls shoot 1
jmp 1
; END-------Main----------
; Get moving, veer off, wait, then return to main loop.
:50
opo 11 100
opo 14 -30
del 25
jmp start
; Firing subroutine
:100
opo 11 100
:101
ipo 8 accuracy
opo 15 accuracy
ipo 2 az
sub cz az 250
jgr 102
ipo 7 az
sub cz az 5000
jne 101
:102
ret
; should never execute this.
int 2