about summary refs log tree commit diff
path: root/bots/warrior1.asm
diff options
context:
space:
mode:
authorEmile <git@emile.space>2023-07-16 01:40:53 +0200
committerEmile <git@emile.space>2023-07-16 01:40:53 +0200
commitecf63cba476057a71bf4b45d5ba5f83ef39f56b8 (patch)
treea003ed4aca701128b5c2576c640452b4ed3e188f /bots/warrior1.asm
initial commit
Diffstat (limited to 'bots/warrior1.asm')
-rw-r--r--bots/warrior1.asm9
1 files changed, 9 insertions, 0 deletions
diff --git a/bots/warrior1.asm b/bots/warrior1.asm
new file mode 100644
index 0000000..6627aae
--- /dev/null
+++ b/bots/warrior1.asm
@@ -0,0 +1,9 @@
+call label
+label:
+	pop eax
+loop:
+	sub eax, 20
+	cmp [eax], 0
+je loop
+	mov [eax], 0
+	jmp loop