From: Tobias Girstmair Date: Mon, 12 Nov 2018 23:14:20 +0000 (+0100) Subject: new version X-Git-Tag: attiny9~145 X-Git-Url: https://git.gir.st/Chiptunes.git/commitdiff_plain/3d47290db08a62701b03b6a1837400e786891372 new version --- diff --git a/foo.c b/foo.c index 01b1c20..de8410b 100644 --- a/foo.c +++ b/foo.c @@ -2,8 +2,11 @@ #include "fakeasm.h" typedef unsigned char u8; +u8* data = "Qj}6jQ6%BY}6YB6%"; int g(int i, u8 x, u8 t, u8 o) { - u8 xxx = (3 & i >> 16 ? "BY}6YB6%" : "Qj}6jQ6%")[t & 0x7]; + t = t & 0x7; + if (3 & i >> 16 ) t+=8; + u8 xxx = data[t]; SUBI (xxx, -51) xxx = (i*xxx) >> o; AND (xxx, x)