Skip to content

Commit

Permalink
refactor(examples): make fibonacci.dcl use lih;
Browse files Browse the repository at this point in the history
  • Loading branch information
5-pebbles committed Sep 13, 2024
1 parent 716b461 commit 8363617
Showing 1 changed file with 1 addition and 33 deletions.
34 changes: 1 addition & 33 deletions examples/fibonacci.dcl
Original file line number Diff line number Diff line change
@@ -1,40 +1,8 @@
# FIBONACCI SEQUENCE
LAB MAIN
LOD ITERATIONS
# LIH [C == 0] END
LIH [C == 0] END

MOV B 0
# 1.
OR B C
AND B 0B000001
SHR C
# 2.
OR B C
AND B 0B000001
SHR C
# 3.
OR B C
AND B 0B000001
SHR C
# 4.
OR B C
AND B 0B000001
SHR C
# 5.
OR B C
AND B 0B000001
SHR C
# 6.
OR B C
AND B 0B000001
SHR C

ADD B TEMP:1
PC TEMP:0 B
LAB TEMP
PC END

# END IMPL
LOD ITERATIONS
SUB C 1
STO ITERATIONS
Expand Down

0 comments on commit 8363617

Please sign in to comment.