From f35c611e2fda92ea2d8a47f645a3c75b036ccf58 Mon Sep 17 00:00:00 2001 From: Michael Abed Date: Tue, 31 Jan 2012 10:56:23 -0500 Subject: multiply by 1 works --- problem1.asm | 8 +++----- 1 file 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: -- cgit v1.2.3-54-g00ecf