From 3637a84ea5ac06f08893587b21de60ae9f02a787 Mon Sep 17 00:00:00 2001 From: Michael Abed Date: Sun, 29 Jan 2012 19:14:06 -0500 Subject: Arguments to mov were reversed --- problem1.asm | 8 ++++---- 1 file 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 -- cgit v1.2.3-54-g00ecf