encoding - How do I code the Fibonacci sequence LMC? -
i wondering if possible create program creates fibonacci sequence in "little man computer".
the program output in letter boxes individual numbers of sequence. input made asking user how high sequence go. example if input "20" go to number 13.
any appreciated,
isaac.
source: link
inp sta n loop lda sub n brp endloop lda out lda b add sta acc lda b sta lda acc sta b bra loop endloop hlt dat 0 b dat 1 n dat acc dat
Comments
Post a Comment