;redcode-b ;name AB Scanner 2.9.6 ;author Chris Hodson ;address chris@openix.com ;strategy a CMP-scanner, but compares a-fields to ;strategy b-fields. Then carpets, clears and starts spiral. ;assert 1 scanrate EQU 95 scandiff EQU 21 scanstart EQU scanrate extracpt EQU 30 carpetlen EQU (extracpt+(scandiff)) ORG cmppt top: DAT 0, 0 DAT -101, 0 for 4 dat 1,1 rof DAT 2, 0 for 4 dat 0,0 rof dat 0,0 for 4 dat 0,0 rof dat 0,0 dat 0,0 ;----------------------- scandat: dat #(scanrate), #(scanrate) ;----------------------- carpet: SPL -1, <-carpetlen ;----------------------- cmpst: SUB.f scandat, cmppt cmppt: SNE.AB scanstart, scanstart+scandiff ;SOP jpnt: JMP.A cmpst,