diff options
author | Michael Abed <michael@pidgey.localdomain> | 2012-01-29 19:14:06 -0500 |
---|---|---|
committer | Michael Abed <michael@pidgey.localdomain> | 2012-01-29 19:14:06 -0500 |
commit | 3637a84ea5ac06f08893587b21de60ae9f02a787 (patch) | |
tree | 4661aca15cce8a8f816563dbef4d5ed58824182b | |
parent | a314b73186a043b7fff286007b06d2b83c18502c (diff) | |
download | ec327-hw1-3637a84ea5ac06f08893587b21de60ae9f02a787.tar.gz ec327-hw1-3637a84ea5ac06f08893587b21de60ae9f02a787.tar.bz2 ec327-hw1-3637a84ea5ac06f08893587b21de60ae9f02a787.zip |
Arguments to mov were reversed
-rw-r--r-- | problem1.asm | 8 |
1 files 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 |