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