summaryrefslogtreecommitdiff
path: root/warriors/trap.red
diff options
context:
space:
mode:
authorBenji Dial <benji@benjidial.net>2023-05-29 16:36:19 -0400
committerBenji Dial <benji@benjidial.net>2023-05-29 16:36:19 -0400
commit97c79ff771d4993e322d0d6c44f265180797b2eb (patch)
tree5513cf25721cf21c06efd913ed2f82b980e3cb24 /warriors/trap.red
parent338549f9cd49fa0f3001826c6605663fa6dd019b (diff)
downloadlib94-97c79ff771d4993e322d0d6c44f265180797b2eb.tar.gz
a whole lot more
Diffstat (limited to 'warriors/trap.red')
-rw-r--r--warriors/trap.red28
1 files changed, 28 insertions, 0 deletions
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: