From news-rocq.inria.fr!jussieu.fr!univ-lyon1.fr!in2p3.fr!swidir.switch.ch!swsbe6.switch.ch!surfnet.nl!howland.reston.ans.net!news-e1a.megaweb.com!newstf01.news.aol.com!newsbf02.news.aol.com!not-for-mail Wed Feb 7 13:53:18 1996 Article: 3812 of rec.games.corewar Path: news-rocq.inria.fr!jussieu.fr!univ-lyon1.fr!in2p3.fr!swidir.switch.ch!swsbe6.switch.ch!surfnet.nl!howland.reston.ans.net!news-e1a.megaweb.com!newstf01.news.aol.com!newsbf02.news.aol.com!not-for-mail From: agserm@aol.com (AGSerm) Newsgroups: rec.games.corewar Subject: Re: Replication Date: 7 Feb 1996 06:45:44 -0500 Organization: America Online, Inc. (1-800-827-6364) Lines: 51 Sender: root@newsbf02.news.aol.com Message-ID: <4fa3d8$bnt@newsbf02.news.aol.com> References: NNTP-Posting-Host: newsbf02.mail.aol.com X-Newsreader: AOL Offline Reader In article , Chris Arguin writes: >> 2) Can you do >> DJN #LAST-src, LOOP >> and have the DJN decrement its own immediate data? > > I'm going out on a limb here, but I'd have to say yes... But it would >look like this... > > DJN jump_to_me, #_until_I'm_zero Absolutely. Use it all the time in my warriors. >> 3) How does one do an efficient block copy? > > How's about this (BTW, I'm working on a similar warrior now...) > > locs dat.f -1, 1 > copy mov.i }locs, >locs > djn.ab copy, 3 > > Not usefule for much, but it gets the job done.... I think this >would end up being a really slow imp ! (Important Note: I've been only >doing Redcode for about a month, so I wouldn't doubt it some of this is >mistaken... Sorry if I end up confusing you) I'm not quite sure what this code does, but i've come across a very useful replication method. You can't use it very effectively for paper since it's hard to make multiple threads, but in it's simplest form it's: ;author Ansel G. Sermersheim ;name Basic Mulberry ;assert CORESIZE==8000 step equ 3 ;much better can be used, but 3 is easier to understand in debug org start start spl 1 ;create 2 processes mov -1, 0 ;add only 1 process, so now we have 3 repl nop step, 0 copy mov