diff options
Diffstat (limited to 'warriors')
-rw-r--r-- | warriors/big-nothing.red | 20 | ||||
-rw-r--r-- | warriors/dwarf.red | 6 | ||||
-rw-r--r-- | warriors/imp.red | 4 | ||||
-rw-r--r-- | warriors/splitter.red | 5 | ||||
-rw-r--r-- | warriors/trap.red | 28 |
5 files changed, 63 insertions, 0 deletions
diff --git a/warriors/big-nothing.red b/warriors/big-nothing.red new file mode 100644 index 0000000..53a6bed --- /dev/null +++ b/warriors/big-nothing.red @@ -0,0 +1,20 @@ +;author blah +;name big-nothing + +start: +nop +nop +nop +nop +nop +nop +nop +nop +nop +nop +nop +nop +nop +nop +nop +jmp start diff --git a/warriors/dwarf.red b/warriors/dwarf.red new file mode 100644 index 0000000..cfa3b86 --- /dev/null +++ b/warriors/dwarf.red @@ -0,0 +1,6 @@ +;author standard +;name dwarf + +mov 0-1, 3 +add.ab #4, 0-1 +jmp 0-2 diff --git a/warriors/imp.red b/warriors/imp.red new file mode 100644 index 0000000..5ba74c4 --- /dev/null +++ b/warriors/imp.red @@ -0,0 +1,4 @@ +;author standard +;name imp + +mov 0, 1 diff --git a/warriors/splitter.red b/warriors/splitter.red new file mode 100644 index 0000000..17016c4 --- /dev/null +++ b/warriors/splitter.red @@ -0,0 +1,5 @@ +;author blah +;name splitter + +spl 0 +jmp 0-1 diff --git a/warriors/trap.red b/warriors/trap.red new file mode 100644 index 0000000..681ea6e --- /dev/null +++ b/warriors/trap.red @@ -0,0 +1,28 @@ +;author benji +;name trap + +org start + +trap: +spl 1 +jmp trap + +start: +mov.i bomb, bomb + 8 +add.ab #8, start +sub.ab #8, bomb +sne.ab #bomb - 8 - start, start +jmp core_clear +jmp start + +bomb: +jmp trap - 8 + +core_clear: +mov background, background + 1 +add.ab #1, core_clear +jnz.b core_clear, core_clear +mov.ab #background + 1 - core_clear, core_clear +jmp core_clear + +background: |