summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--problem1.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/problem1.asm b/problem1.asm
index e35d134..882eec2 100644
--- a/problem1.asm
+++ b/problem1.asm
@@ -1,16 +1,16 @@
; (a-b)*c
- mov R5, 1
+ mov R5, 0x1
mov R1, [R5]
inc R5
mov R2, [R5]
inc R5
mov R3, [R5]
sub R1, R2
- mov R2, 1
- mov R1, R4
+ mov R2, 0x1
+ mov R4, R1
loop:
- inc R2
add R1, R4
+ inc R2
cmp R2, R3
jne loop
mov R2, 0x1E