add examples from bfckr

This commit is contained in:
2021-09-19 23:48:01 +02:00
parent 41bec2ebe5
commit 4ce610fab9
10 changed files with 201 additions and 0 deletions

12
examples/adder.bf Normal file
View File

@@ -0,0 +1,12 @@
, ; read to p1
> ; move to p2
, ; read to p2
[ ; enter loop
< ; move to p1
+ ; increment p1
> ; move to p2
- ; decrement p2
] ; exit when last cell is empty
< ; go back to p1
------------------------------------------------ ; subtract 48
. ; print p1