use compiler configured include for dependencies
[afunbrick.git] / test / cellsize.bf
blob1dce918665b9b197f7027ede6f1e916d8c541120
1 Calculate the value 256 and test if it's zero
2 If the interpreter errors on overflow this is where it'll happen
3 ++++++++[>++++++++<-]>[<++++>-]
4 +<[>-<
5     Not zero so multiply by 256 again to get 65536
6     [>++++<-]>[<++++++++>-]<[>++++++++<-]
7     +>[>
8         # Print "32"
9         ++++++++++[>+++++<-]>+.-.[-]<
10     <[-]<->] <[>>
11         # Print "16"
12         +++++++[>+++++++<-]>.+++++.[-]<
13 <<-]] >[>
14     # Print "8"
15     ++++++++[>+++++++<-]>.[-]<
16 <-]<
17 # Print " bit cells\n"
18 +++++++++++[>+++>+++++++++>+++++++++>+<<<<-]>-.>-.+++++++.+++++++++++.<.
19 >>.++.+++++++..<-.>>-
20 Clean up used cells.
21 [[-]<]