Create fibonacci.asm

This commit is contained in:
2024-02-13 18:38:02 -05:00
parent 861820aa49
commit e1540ff2b1
7 changed files with 66 additions and 6 deletions

8
examples/fibonacci.asm Normal file
View File

@@ -0,0 +1,8 @@
lda 1
ldb 0
fib_loop:
ldc b
ldb a
add c
jlt fib_loop ; Stop when carry flag is set