diff options
Diffstat (limited to 'bots')
-rw-r--r-- | bots/warrior0.asm | 9 | ||||
-rw-r--r-- | bots/warrior1.asm | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/bots/warrior0.asm b/bots/warrior0.asm new file mode 100644 index 0000000..29e2271 --- /dev/null +++ b/bots/warrior0.asm @@ -0,0 +1,9 @@ +call label +label: + pop eax +loop: + sub eax, 10 + cmp [eax], 0 +je loop + mov [eax], 0 + jmp loop 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 |