;redcode-94 ;name Impfinity v3e7 ;author Planar ;strategy stone + core-clear + imp spiral ;assert CORESIZE == 8000 isize equ 7 istep equ 1143 magic equ 5000 idist equ (8000/isize) bstep equ 2214 trash equ 25 impoff equ 200 prmpos equ -19 gunpos equ (idist-20) stnpos equ (idist-20) stnflag equ 1 decflag equ 1 prmoff equ (impoff+prmpos) gunoff equ ((idist+gunpos)/4*4+prmoff) stnoff equ ((idist*2+stnpos)/4*4+prmoff) imp equ (boot+impoff) org boot boot mov.i {pgun, -trash mov.i {pprm, -2*trash mov.i {pprm, -3*trash, pprm mov.i >-4*trash, pgun mov.i {pstn, -5*trash rof for 1-stnflag mov #0, #0 rof mov.i bomb, -6*trash, pstn bomb dat <2667, <5334 pgun dat ptr+1, ptr+1+gunoff gun spl #1, >3*trash add.a #istep+1, ptr ptr djn.f imp-gunoff-istep-1, 3*trash mov.i instr, }prime pstn dat jump+1, jump+1+stnoff djstr equ jump+((magic/idist*idist-stnpos-prmpos+(boot-jump)-20)/4*4+1) stone spl #stone+bstep+1, }-2000 mov.i pstn, }stone add.f #bstep-1, stone jump djn.f stone, 1 rof rof end