mirror of
https://github.com/Asraelite/littlebigcomputer.git
synced 2025-07-18 00:26:50 +00:00
Init commit
This commit is contained in:
commit
c45ad79440
48 changed files with 6786 additions and 0 deletions
12
programs/parva/fibonacci_1.lbpasm
Normal file
12
programs/parva/fibonacci_1.lbpasm
Normal file
|
@ -0,0 +1,12 @@
|
|||
li x0, 0
|
||||
li x1, 1
|
||||
li x2, 20
|
||||
|
||||
loop:
|
||||
|
||||
add x0, x0, x1
|
||||
add x1, x0, x1
|
||||
subi x2, x2, 1
|
||||
bnez x2, loop
|
||||
|
||||
wfi
|
Loading…
Add table
Add a link
Reference in a new issue