new version
[Chiptunes.git] / foo.c
... / ...
CommitLineData
1#include <stdio.h>
2typedef unsigned char u8;
3int g(int i, u8 x, u8 t, u8 o) {
4 return ((3 & x & (i * ((3 & i >> 16 ? "BY}6YB6%" : "Qj}6jQ6%")[t % 8] + 51) >> o)));
5};
6
7int main(void) {
8 int i;
9 int n;
10 int s;
11 u8 acc;
12 for (i = 0;; i++) {
13 acc = 0;
14 n = i >> 14;
15 s = i >> 17;
16 acc += g(i, 1, n, 12);
17 acc += g(i, s, n ^ i >> 13, 10);
18 acc += g(i, s / 3, n + ((i >> 11) % 3), 10);
19 acc += g(i, s / 5, 8 + n - ((i >> 10) % 3), 9);
20 putchar(acc<<4);
21 }
22}
Imprint / Impressum