;redcode-94nop ;name Hen-Thorir ;author bvowk/fizmo ;strategy qscanner, paper and imps ;assert 1 ;------------ Qscan Constant --------------- zero equ qbomb qtab3 equ qbomb qz equ 2108 qy equ 243 qc2 equ ((1 + (qtab3-qptr)*qy) % CORESIZE) qb1 equ ((1 + (qtab2-1-qptr)*qy) % CORESIZE) qb2 equ ((1 + (qtab2-qptr)*qy) % CORESIZE) qb3 equ ((1 + (qtab2+1-qptr)*qy) % CORESIZE) qa1 equ ((1 + (qtab1-1-qptr)*qy) % CORESIZE) qa2 equ ((1 + (qtab1-qptr)*qy) % CORESIZE) qoff equ -88 qstep equ -7 qtime equ 20 ;-------Constants for optimization---------- pStep1 equ 1297 pStep2 equ 1431 sStep1 equ 4068 sStep2 equ 7837 sStep3 equ 1916 pBoo1 equ 840 pBoo2 equ 2619 iBmb1 equ 4597 iBmb2 equ 7512 iBmb3 equ 7095 Gap1 equ 4 Gap2 equ 5 ;------------------------------------------- Gap3 equ (22-Gap1-Gap2) istep equ 2667 ;------------------------------------------- dat 0, 0 qbomb dat >qoff, >qc2 ;------ 45 instructions -------------------- ;23 pGo spl 1 spl 1 mov -1 mov <1, {1 cs jmz.a pStep1-pBoo1, -pBoo1 c0a spl @0, pStep2 mov }-1, >-1 mov <1, {1 csa jmz.a pStep2-pBoo2, -pBoo2 for Gap1 dat 0, 0 rof iStart spl #0, qptr, qptr+qz+(qb2-1) jmp q2,