summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--problem2.asm14
1 files changed, 7 insertions, 7 deletions
diff --git a/problem2.asm b/problem2.asm
index 315ec4d..392bd33 100644
--- a/problem2.asm
+++ b/problem2.asm
@@ -1,20 +1,20 @@
-
; first 10 fibonacci in 200-209
-
mov R5, 0x32
- mov R5, R4
+ mov R4, R5
add R5, R4
add R5, R4
add R5, R4
mov R0, 0x1
mov R1, 0x1
mov R3, 0xA
- mov R4, 1
+ mov R4, 0
loop:
+ mov [R5], R0
+ mov R2, R1
+ add R1, R0
+ mov R0, R2
inc R4
- mov R3, R2
- add R2, R1
- mov R3, R1
+ inc R5
cmp R4, R3
jne loop
halt