Article 785 of rec.games.corewar: Newsgroups: rec.games.corewar From: stst@vuse.vanderbilt.edu (Stefan Strack) Subject: More code: Agony 2.1 Message-ID: <1992Apr29.002402.29361@vuse.vanderbilt.edu> Sender: news@vuse.vanderbilt.edu (News Manager) Nntp-Posting-Host: vuse2 Organization: Vanderbilt University School of Engineering, Nashville, TN, USA References: <92119.141709JAR129@psuvm.psu.edu> Date: Wed, 29 Apr 1992 00:24:02 GMT Lines: 40 In article <92119.141709JAR129@psuvm.psu.edu> JAR129@psuvm.psu.edu (Jeff Raven) writes: >For those of you out there who could use another warrior to test against, >here's Nevermore 3.2. [..] Keep it up, Jeff! Another Core Warrior for your collection: Agony 2.1 is a scanner that bombs with a SPL-carpet, just like XTC or Jeff's Nevermore. For thoroughness and greater speed (2 scans/3 instruction loop) it uses a CMP-scan engine. Agony doesn't switch bombs to kill, but clears the core when scanning is complete. It was briefly #1 and is now somewhere in the middle of the hill. Enjoy, Stefan (stst@vuse.vanderbilt.edu) ;redcode verbose ;name Agony 2.1 ;author Stefan Strack ;strategy Small-interval CMP scanner that bombs with a SPL 0 carpet. ;strategy 2.0: smaller ;strategy 2.1: larger, but should tie less; changed scan constants ;strategy Submitted: @date@ CDIST EQU 23 ; distance between addresses CoMPared IVAL EQU 994 ; scan increment (mod-2 pattern) scan ADD incr, comp ; CMP scan loop: comp CMP 0, CDIST ; SLT #incr-comp+CDIST+(bptr-comp)+1,comp ; don't bomb self JMP scan ; MOV #CDIST+(bptr-comp)+1,count ; init bomb-loop w/ # of bombs MOV comp, bptr ; use "comp" as bomb-pointer bptr DAT #0 ; this will be "comp" when exec split MOV bomb,