home *** CD-ROM | disk | FTP | other *** search
- ;Randman. Ed T. Toton III 2/9/92
-
- ; define vars
- #def armor
- #def hitcheck
- #def hit
- #def accuracy
-
-
- ; Settings...
- set hitcheck 50
- opo 18 9
- opo 20 1000
- opo 13 0
- opo 22 0
- gsb 4000
- opo 11 100
-
-
- ; Main loop...
- :1
- ;Shift 19
- opo 12 19
-
- ;if enemy gosub 1000
- ipo 7 az
- cmp az 5000
- jls 1000 1
-
- ;if hit gosub 2000
- set hit 0
- gsb hitcheck
- cmp hit 0
- jne 2000 1
-
- ;if heat>350 gosub 8999
- ipo 2 az
- cmp az 350
- jgr 8999 1
-
- jmp 1
-
-
-
- ; Shooting sub-routine...
- :1000
-
- ;fire
- ipo 8 accuracy
- opo 15 accuracy
-
- ;if hit gosub 2000
- set hit 0
- gsb hitcheck
- cmp hit 0
- jne 2000 1
-
- ;if enemy goto 1000
- ipo 7 az
- cmp az 5000
- jls 1000
-
- ret
-
-
-
-
- ;Veer off...
- :2000
-
- ;radnspin
- gsb 4000
-
- ;Delay 9 & move 100
- del 9
- opo 11 100
-
- ret
-
-
-
-
- ; Cool-down subroutine...
- :8999
-
- ;if heat>100 goto 8999
- ipo 2 az
- cmp az 100
- jgr 8999
-
- ret
-
-
-
-
- ;Hitcheck
- :50
- ;read and compare armor
- ipo 6 az
- cmp az armor
-
- ;if no damage then simply exit.
- jeq 51
-
- ;if hit, then say so!
- set armor az
- set hit 1
- :51
- ret
-
-
-
-
- ;Randspin
- :4000
-
- ;Randspin
- set az 10030
- mod ax az 360
- opo 14 az
-
- ret
-
-
-
- ; End of program!!
-