summaryrefslogtreecommitdiff
path: root/gcc/jit/docs/examples/emit-alphabet.bf
blob: 6863273ee8c76d3bbcdbbff6e576ff3db5b3bc10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[
  Emit the uppercase alphabet
]

cell 0 = 26
++++++++++++++++++++++++++

cell 1 = 65
>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<

while cell#0 != 0
[
 >
 .      emit cell#1
 +      increment cell@1
 <-     decrement cell@0
]