Last active
November 29, 2016 12:50
-
-
Save AaronC81/60f72606779da0e2117b19d52c7d93b0 to your computer and use it in GitHub Desktop.
Fibonacci Sequence in Little Man Computer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INP | |
SUB one | |
STA counter | |
loop LDA twoLast | |
ADD oneLast | |
STA next | |
OUT | |
LDA oneLast | |
STA twoLast | |
LDA next | |
STA oneLast | |
LDA counter | |
SUB one | |
STA counter | |
BRP loop | |
counter DAT 5 | |
twoLast DAT 0 | |
oneLast DAT 1 | |
next DAT 0 | |
one DAT 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment