-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathseximal.bf
52 lines (46 loc) · 1.26 KB
/
seximal.bf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[
seximal ascii table
0052 (dec 32) to 0331 (dec 127)
0052 0053 0054 " 0055 #
0100 $ 0101 % 0102 & 0103 ' 0104 ( 0105 )
0320 x 0321 y 0322 z 0323 { 0324 | 0325 }
0330 ~ 0331
]
(0 to 10) = '0052 \n'
>> +++++
> ++
>>> ++++++ ++ [-
<<<<<< ++++ (0) ' '
> ++++++ (1) '0'
> ++++++ (2) '5'
> ++++++ (3) '2'
> ++++ (4) 'x'
> ++++ (5) ' '
> ]
+++++ +++++ (10) '\n'
two blank entries (dozen four spaces)
> ++++++ ++++++ ++++ [-<<.>>]
first four entries v v (inc)
++++ [- <<<<<<<.>.>.>.+>>.<.+>..>> ] '0052 x '
< . '\n'
<<<<< + > ----- > ------ carry ones and sixes
rows from 0100 to 0255
>>>>>> ++ [- (13) 'nifs'
< ++++++ [- (12) 'sixes'
< ++++++ [- (11) 'ones'
<<<<<<<.>.>.>.+>>.<.+>..>>
]
< . newline after row
<<<< + > ------ carry ones to sixes
>>>>>
]
<<<<<< < + > ------ carry sixes to nifs
>>>>>>>
]
300 to 325
< +++ [-
<++++++[-<<<<<<<.>.>.>.+>>.<.+>..>>
]<.<<<<+>------>>>>>
]
330 to 331
< ++ [- <<<<<<<.>.>.>.+>>.<.+>..>> ] < .