Advertisement
RareUI

Core war - Leaf Dwarf

Jul 8th, 2014
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. ;redcode-94
  2. ;name Leaf Dwarf
  3. ;author Jani Mustonen
  4. ;strategy Leaf bomber
  5. ;assert 1
  6.  
  7. length equ 12
  8. step equ 4329
  9. jump equ step+start+1
  10.  
  11. org start
  12. ptr dat #1 , #0
  13. targ dat #1 , #0
  14. leaf1 mov.ab #step , targ ; Reset the target
  15. leaf2 mov.i >ptr , >targ ; Copy *ptr++ -> *targ++
  16. slt #length , ptr ; Jump back if ptr < length
  17. jmp leaf2
  18. jmp jump ; When done, jump to the start of the new program.
  19. start spl leaf1
  20. mov.ab #2 , 3
  21. bomb mov.i 2 , >2
  22. jmp bomb , >1
  23. dat #1 , #2
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement