diff options
author | Michael Abed <michaelabed@gmail.com> | 2012-01-27 01:22:46 -0500 |
---|---|---|
committer | Michael Abed <michaelabed@gmail.com> | 2012-01-27 01:22:46 -0500 |
commit | 14d88ae54bdd2a824b4172308366a3e513b29de9 (patch) | |
tree | b03ec96bd13ad22d6a6b4b984fb58cd73faea670 /problem2.asm | |
download | ec327-hw1-14d88ae54bdd2a824b4172308366a3e513b29de9.tar.gz ec327-hw1-14d88ae54bdd2a824b4172308366a3e513b29de9.tar.bz2 ec327-hw1-14d88ae54bdd2a824b4172308366a3e513b29de9.zip |
initial commit
Diffstat (limited to 'problem2.asm')
-rw-r--r-- | problem2.asm | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/problem2.asm b/problem2.asm new file mode 100644 index 0000000..315ec4d --- /dev/null +++ b/problem2.asm @@ -0,0 +1,20 @@ + +; first 10 fibonacci in 200-209 + + mov R5, 0x32 + mov R5, R4 + add R5, R4 + add R5, R4 + add R5, R4 + mov R0, 0x1 + mov R1, 0x1 + mov R3, 0xA + mov R4, 1 +loop: + inc R4 + mov R3, R2 + add R2, R1 + mov R3, R1 + cmp R4, R3 + jne loop + halt |