X-Git-Url: https://git.gir.st/Chiptunes.git/blobdiff_plain/e7afc0449b6870b8b7c98980c5fb6a67daec14e8..da32ed67803941a1d5cd6cfb7efa2896f8e5cca5:/foo.c diff --git a/foo.c b/foo.c index 404129f..b45639d 100644 --- a/foo.c +++ b/foo.c @@ -1,8 +1,11 @@ #include +#include "fakeasm.h" typedef unsigned char u8; + int g(int i, u8 x, u8 t, u8 o) { u8 xxx = (3 & i >> 16 ? "BY}6YB6%" : "Qj}6jQ6%")[t % 8]; - return ((3 & x & (i * (xxx + 51) >> o))); + SUBI (xxx, -51) + return ((3 & x & (i * (xxx) >> o))); }; int main(void) {