diff options
author | Michael Abed <michael@pidgey.localdomain> | 2012-01-31 09:41:56 -0500 |
---|---|---|
committer | Michael Abed <michael@pidgey.localdomain> | 2012-01-31 09:41:56 -0500 |
commit | ba0c2dd1bc8c45f0d55a9d966bac0d1d48e87e7c (patch) | |
tree | dfd97d5a7ef84981e94b90d3b3c443da398aed10 | |
parent | 9f42f81c08f9e51406a6283712144b2cdaa777e2 (diff) | |
download | ec327-hw1-ba0c2dd1bc8c45f0d55a9d966bac0d1d48e87e7c.tar.gz ec327-hw1-ba0c2dd1bc8c45f0d55a9d966bac0d1d48e87e7c.tar.bz2 ec327-hw1-ba0c2dd1bc8c45f0d55a9d966bac0d1d48e87e7c.zip |
make it smaller
-rw-r--r-- | problem2.asm | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/problem2.asm b/problem2.asm index 392bd33..fc4c453 100644 --- a/problem2.asm +++ b/problem2.asm @@ -1,13 +1,10 @@ ; first 10 fibonacci in 200-209 mov R5, 0x32 - mov R4, R5 - add R5, R4 - add R5, R4 - add R5, R4 + add R5, R5 + add R5, R5 mov R0, 0x1 mov R1, 0x1 mov R3, 0xA - mov R4, 0 loop: mov [R5], R0 mov R2, R1 @@ -17,4 +14,3 @@ loop: inc R5 cmp R4, R3 jne loop - halt |