From caceb8b8b03e950a6f543650d0478c1f84b1cc71 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Tue, 30 May 2023 16:02:55 -0400 Subject: [PATCH] modify warrior set --- warriors/{big-nothing.red => bait.red} | 2 +- warriors/dwarf-replicator.red | 55 -------------------------- warriors/dwarf.red | 2 +- warriors/train.red | 25 ++++++++++++ 4 files changed, 27 insertions(+), 57 deletions(-) rename warriors/{big-nothing.red => bait.red} (77%) delete mode 100644 warriors/dwarf-replicator.red create mode 100644 warriors/train.red diff --git a/warriors/big-nothing.red b/warriors/bait.red similarity index 77% rename from warriors/big-nothing.red rename to warriors/bait.red index 6a1a0dd..3b863dc 100644 --- a/warriors/big-nothing.red +++ b/warriors/bait.red @@ -1,5 +1,5 @@ ;author Benji Dial -;name Big Nothing +;name Bait start for 19 diff --git a/warriors/dwarf-replicator.red b/warriors/dwarf-replicator.red deleted file mode 100644 index c5022a2..0000000 --- a/warriors/dwarf-replicator.red +++ /dev/null @@ -1,55 +0,0 @@ -;author Benji Dial -;name Dwarf Replicator - -;not a particularly good warrior, but is sufficient to test a few things - -start - mov 0, 2908 - nop }start, >start - jmp 2 - - dat - - seq.a #the_end - start, start - jmp start - jmp 2 - - dat - - sub.ab #the_end - start, start - spl @start - jmp 2, var + + mov.a #step / 2, the_end + 2 + +stone + mov the_end + 1, }the_end + 2 + jmp stone, }the_end + 2 + +var + dat + dat paper + 1, paper + step + 1 + +the_end