;redcode-94 ;name Sandstorm Q/0.5b ;version 0.5b ;kill Sandstorm ;author Ilmari Karonen ;strategy A fast stone with qscan: ;strategy Now with a non-suicidal pit and a silk-like boot. ;strategy Thanks to all who have helped me with this. ;strategy Submitted: @date@ ;comments Colors core at 0.8c, bombs at 1.2c. ;history 0.1 - Works. ;history 0.2 - Added boot & decoy. ;history 0.3 - Added qscan from Probe. ;history 0.4 - Qscan throws vamp fangs - better? ;history 0.4b- Hmmph.. my gate sucked. :( ;history 0.4c- So did my boot and my pit.. :( ;history 0.4d- Finally! I think it works now. ;history 0.5 - Changed the bombing routine to use decrements. ;history 0.5b- Non-suicidal compressed pit and silk-style boot. ;date October 25, 1996 ;planar quick, scan, vamp, stun, pspace, boot, stone, clear ;assert CORESIZE == 8000 step equ 3288 ; mod-8 (2 runs offset by 4) cptr equ (incr-10) cend equ (clear+10) away equ (qpit+2416) ; be careful with this! org start QB equ (start+400) QS equ 200 QD equ 100 COUNT equ 6 GAP equ ((start+1)-(tab-1)) ; 15 REP equ 6 qpit: spl #10*QS, {2*QS ; can get 21 values from this table table: spl #4*QS, {1*QS ; and can also use the initial value spl #23*QS, {3*QS ; of fnd fnd: spl #-GAP, {QB stp.b <0, #100 jmp qpit, {555 qbomb: jmp qpit-fnd, {-100 qbm3: jmp *-GAP, -GAP tab: add.a table,table slow: add.ab @tab,fnd fast: add.b *tab,@slow which: sne.i datz,@fnd add.ab #QD,fnd sub.ba fnd, qbomb mov.i qbomb,@fnd add.ba fnd,fnd qloop: mov.i qbm2,*fnd sub.f qinc,fnd mov.i qbm3,@fnd djn.b qloop,#REP jmp boot,}-300 start: seq.i QB+QS*0,QB+QS*0+QD jmp which,}QS*13 ; qinc+GAP seq.i QB+QS*1,QB+QS*1+QD jmp fast,}QB+QS*1+QD/2 seq.i QB+QS*2,QB+QS*2+QD jmp fast,{tab seq.i QB+QS*3,QB+QS*3+QD jmp fast,}tab seq.i QB+QS*13,QB+QS*13+QD jmp fast,{fast ; !!! seq.i QB+QS*4,QB+QS*4+QD jmp >fast,}QB+QS*4+QD/2 seq.i QB+QS*5,QB+QS*5+QD jmp slow,}QB+QS*5+QD/2 seq.i QB+QS*6,QB+QS*6+QD jmp slow,{tab seq.i QB+QS*7,QB+QS*7+QD jmp slow,}tab seq.i QB+QS*10,QB+QS*10+QD jmp >fast,fast,>tab seq.i QB+QS*24,QB+QS*24+QD jmp slow,>tab seq.i QB+QS*17,QB+QS*17+QD jmp slow,{fast ; !!! seq.i QB+QS*8,QB+QS*8+QD jmp tab seq.i QB+QS*28,QB+QS*28+QD jmp tab,>tab seq.i QB+QS*30,QB+QS*30+QD jmp tab,}tab ; *** Sandstorm boot spl away, {777 z for 11 mov.i }bptr, }boot rof bptr mov.i incr, boot dat {888, {999 incr spl #step*2, #-step*2 hit1 sub.f incr, b1 ; hit (a-incr) b1 mov.i >hit1+step, {hit2+step add.f incr, b2 b2 mov.i }hit1+step*2, cptr ; d-clear mov.i clear, >cptr djn.f cloop, >cptr dat.f <2667, cend-cptr ; hit (b-incr) clear dat.f <2667, cend-cptr ; just for djn protection datz z for (MAXLENGTH-CURLINE) dat 0, 0 rof end