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