From news@valhalla.stormking.com Tue Feb 7 04:08:23 1995 Received: by valhalla.stormking.com with UUCP id AA17248 (5.65c/IDA-1.5 for cbx.rec.games.corewar); Sat, 11 Feb 1995 18:33:56 -0500 From: pk6811s@acad.drake.edu Newsgroups: rec.games.corewar Subject: Re: djn -3,<1499, cmp-scanning Date: 7 Feb 95 10:08:23 CST Organization: Drake University, Des Moines, Iowa Lines: 76 Distribution: world Message-Id: <1995Feb7.100823@acad.drake.edu> References: <1995Feb6.170908.1817@rhodes> Nntp-Posting-Host: acad.drake.edu Apparently-To: cbx.rec.games.corewar@valhalla.stormking.com In article <1995Feb6.170908.1817@rhodes>, graham@harlie.mathcs.rhodes.edu (Randy Graham) writes: > I've been looking at some code from code for warriors and feel like I > am starting to get a handle on what is happening with many of them, > but I still have questions. I have been looking at Rave and Coreclear > (don't think that's its real name, but its by P.Kline I believe). > Anyway, both of them have chunks like the following: > (actually, this is the complete code I have for CoreClear) > > add off, 1 > loc cmp 1, 50 > slt #20, -1 > djn -3, <1499 > mov j, @loc > dec mov s, add new, @dec > jmz -6, #0 > mov s, 7+381 > add #381, 0 > j djn @-1, #6900 > s spl 0 > new mov -49, <-48 > off dat <-98, <-98 > Um... don't remember this one. Anyway the DJN XX, attack at a-pointer mov bjmp,@scan ; jmp half of the bomb scanptr mov bspl,