summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--problem1.asm8
1 files changed, 3 insertions, 5 deletions
diff --git a/problem1.asm b/problem1.asm
index f27fd90..5cdcfc0 100644
--- a/problem1.asm
+++ b/problem1.asm
@@ -10,14 +10,12 @@
sub R1, R2
mov R4, R1
mov R1, 0x0
- mov R5, 0x1
- cmp R3, R5
- je done
loop:
add R1, R4
- inc R4
- cmp R4, R3
+ inc R0
+ cmp R0, R3
jne loop
+ jmp done
zero:
mov R1, 0x0
done: