Article 2528 of rec.games.corewar: Path: hellgate.utah.edu!dog.ee.lbl.gov!ihnp4.ucsd.edu!munnari.oz.au!uniwa!devink From: devink@tartarus.uwa.edu.au (Devin Kilminster) Newsgroups: rec.games.corewar Subject: Smartbomb 4.1 Date: 28 Feb 1994 13:36:53 GMT Organization: The University of Western Australia Lines: 51 Message-ID: <2kss1l$1qi@uniwa.uwa.edu.au> NNTP-Posting-Host: lethe.uwa.edu.au X-Newsreader: TIN [version 1.2 PL2] Hi there :-) Someone a while back was asking for some examples of redcode. I posted this then, but something seemed to go wrong and it didn't go out. Therefore, I'm trying again. Smartbomb 4.1 didn't go quite as well as I hoped it would but there are some (I think) interesting things. It works by useing a CMP <,< instruction to decrement memory locations in a mod 4 pattern, while scanning at the same time. I like to think of the decremented locations as bombs and they are smart because they can tell when they've hit something unusual. When something is found it's bombed with a run of SPL -1, this has effective stopping power whether it hits the begining or end of a process. After a certain amount of bombing it goes into a mod 2 coreclear, this will kill processes executing SPL -1s. The mod 2 coreclear allows me to spend more time doing the initial scanning. At least that's the idea, I suspect that a two pass coreclear would be far more effective and I need to work on the imp gate. Devin Kilminster. ;name Smartbomb 4.1 ;author Devin Kilminster ;strategy mod 4 mutagen on-axis scanner (access ~133% c) ;strategy mod 2 coreclear ;strategy 100% c imp gate ;strategy longer scan time scan add offset, target target cmp <-2, <-4002 slt #100, target jmp scan, #111 mov bomb,