From 27d58baae806abab09941a9569a4c803cc3f708d Mon Sep 17 00:00:00 2001 From: Michael Abed Date: Sun, 29 Jan 2012 19:24:47 -0500 Subject: Fix register naming --- problem2.asm | 14 +++++++------- 1 file 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 -- cgit v1.2.3-54-g00ecf