Add the basic fibonacci sequence program.
This commit is contained in:
parent
115dce6b8c
commit
351b23b0f7
8
tasm/fib.tasm
Normal file
8
tasm/fib.tasm
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
addc r1 r0 1
|
||||||
|
addc r2 r0 1
|
||||||
|
loop:
|
||||||
|
disp r1
|
||||||
|
add r3 r1 r2
|
||||||
|
add r1 r0 r2
|
||||||
|
add r2 r0 r3
|
||||||
|
jmp loop # do bullshit
|
Loading…
Reference in New Issue
Block a user