diff options
author | Michael Abed <michaelabed@gmail.com> | 2012-01-31 10:56:23 -0500 |
---|---|---|
committer | Michael Abed <michaelabed@gmail.com> | 2012-01-31 10:56:23 -0500 |
commit | f35c611e2fda92ea2d8a47f645a3c75b036ccf58 (patch) | |
tree | e21bd01aab02d2fbe1872073c1cbf1ead6dcfdfd | |
parent | 736ee78d67be3ef38d0a4e9cf44e10295a88c3d5 (diff) | |
download | ec327-hw1-f35c611e2fda92ea2d8a47f645a3c75b036ccf58.tar.gz ec327-hw1-f35c611e2fda92ea2d8a47f645a3c75b036ccf58.tar.bz2 ec327-hw1-f35c611e2fda92ea2d8a47f645a3c75b036ccf58.zip |
multiply by 1 works
-rw-r--r-- | problem1.asm | 8 |
1 files 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: |