about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-02-22 13:42:34 +0100
committerEmile <hanemile@protonmail.com>2020-02-22 13:42:34 +0100
commit7a5d92f928b975377ff3b8472ce2e86971c06c66 (patch)
tree09ce986e0dfd92049edb11b5c22a93956af8684f
parent4008dcd9d233019366ff8e59b0061baf2f37fbd4 (diff)
super basic bot
-rw-r--r--bots/warrior.asm9
1 files changed, 9 insertions, 0 deletions
diff --git a/bots/warrior.asm b/bots/warrior.asm
new file mode 100644
index 0000000..3cdd9da
--- /dev/null
+++ b/bots/warrior.asm
@@ -0,0 +1,9 @@
+call label
+label:
+	pop eax
+loop:
+	sub eax, 10
+	cmp [eax], 0
+je loop
+	mov [eax], 0
+	jmp loop
\ No newline at end of file