about summary refs log tree commit diff
path: root/bots
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-02-23 16:35:59 +0100
committerEmile <hanemile@protonmail.com>2020-02-23 16:35:59 +0100
commitf8660e0b62f819be7223c0d908f16cd34cc25fa1 (patch)
tree46038ee5e0fa4387148d0984ba4d98ff3a1fdf5a /bots
parent2889dea36fee0491ebf9df82bd2611f26b57f168 (diff)
updated the bots
Diffstat (limited to 'bots')
-rw-r--r--bots/warrior0.asm (renamed from bots/warrior.asm)0
-rw-r--r--bots/warrior1.asm9
2 files changed, 9 insertions, 0 deletions
diff --git a/bots/warrior.asm b/bots/warrior0.asm
index 29e2271..29e2271 100644
--- a/bots/warrior.asm
+++ b/bots/warrior0.asm
diff --git a/bots/warrior1.asm b/bots/warrior1.asm
new file mode 100644
index 0000000..29e2271
--- /dev/null
+++ b/bots/warrior1.asm
@@ -0,0 +1,9 @@
+call label
+label:
+	pop eax
+loop:
+	sub eax, 10
+	cmp [eax], 0
+je loop
+	mov [eax], 0
+	jmp loop