From: Tobias Girstmair Date: Mon, 12 Nov 2018 23:21:29 +0000 (+0100) Subject: new version X-Git-Tag: attiny9~140 X-Git-Url: https://git.gir.st/Chiptunes.git/commitdiff_plain/09cf3949fbbd260cbb080e916098e859eed3b53c new version --- diff --git a/foo.c b/foo.c index 9e23a5b..c2f2166 100644 --- a/foo.c +++ b/foo.c @@ -8,7 +8,10 @@ u8 g(int i, u8 x, u8 t, u8 o) { ANDI (t, 0x07) tmp = i >> 16; ANDI (tmp, 3) - if (tmp) t+=8; + TST (tmp) + BREQ (skip) + SUBI (t, -8) + skip: t = data[t]; SUBI (t, -51) t = (i*t) >> o;