Commit | Line | Data |
---|---|---|
61fab018 | 1 | #include <stdio.h> |
da32ed67 | 2 | #include "fakeasm.h" |
61fab018 | 3 | typedef unsigned char u8; |
da32ed67 | 4 | |
26c08307 | 5 | int g(int i, u8 x, u8 t, u8 o) { |
e7afc044 | 6 | u8 xxx = (3 & i >> 16 ? "BY}6YB6%" : "Qj}6jQ6%")[t % 8]; |
da32ed67 TG |
7 | SUBI (xxx, -51) |
8 | return ((3 & x & (i * (xxx) >> o))); | |
61fab018 TG |
9 | }; |
10 | ||
11 | int main(void) { | |
fe9a76e4 TG |
12 | int i; |
13 | int n; | |
14 | int s; | |
ab6fe4c2 | 15 | u8 acc; |
fe9a76e4 | 16 | for (i = 0;; i++) { |
ab6fe4c2 | 17 | acc = 0; |
fe9a76e4 TG |
18 | n = i >> 14; |
19 | s = i >> 17; | |
ab6fe4c2 TG |
20 | acc += g(i, 1, n, 12); |
21 | acc += g(i, s, n ^ i >> 13, 10); | |
22 | acc += g(i, s / 3, n + ((i >> 11) % 3), 10); | |
23 | acc += g(i, s / 5, 8 + n - ((i >> 10) % 3), 9); | |
24 | putchar(acc<<4); | |
fe9a76e4 | 25 | } |
61fab018 | 26 | } |