X-Git-Url: https://git.gir.st/Chiptunes.git/blobdiff_plain/185709479c969b146496fc1fdbdd8d0aa5d05476..902cfdea32b9d35894757370ab4626e57e6f0eed:/foo.c diff --git a/foo.c b/foo.c index f135f28..dc9d62e 100644 --- a/foo.c +++ b/foo.c @@ -100,7 +100,8 @@ int main(void) { #define tmp o x = (x*0x33)>>8; #undef tmp - t = 8 + n - (((i3&0x01)<<14 | i2<<6 | i1>>2) % 3); + t = n - (((i3&0x01)<<14 | i2<<6 | i1>>2) % 3); + SUBI (t, -8) LDI (o, 9) RCALL g(); ADD (acc, t)