I was having a look at John's Core War pages …

Stephen Gunnell · 16 February 2017 00:42

I was having a look at John's Core War pages and I noticed that the decoy maker example only has a fixed formula. I used decoy makers extensively with some of the Kenshin variants and I came up with this code that uses PMars macro expansion.

B     equ   OFFSET
S     equ   SPACING

decoy nop   {B+1     , {B+2
      I for LENGTH
      mov.i {B+(S+3)*I , {(B+(S+3)*I+S+2)
      rof
      djn.f    NEXT,     B
Probably well known or at least obvious to all the older players but may be interesting to newcomers.

Decoy Maker

Comments

John Metcalf: I use this quite a bit on the tiny hill with wider spacing to hopefully hit the opponent while creating a decoy. :-)