From: Tobias Girstmair Date: Tue, 13 Nov 2018 18:17:47 +0000 (+0100) Subject: new version X-Git-Tag: attiny9~58 X-Git-Url: https://git.gir.st/Chiptunes.git/commitdiff_plain/7716b4275b01a407ee7d510456415e55f636ae71?ds=sidebyside new version --- diff --git a/foo.c b/foo.c index 473484a..822917f 100644 --- a/foo.c +++ b/foo.c @@ -100,7 +100,6 @@ int main(void) { //voice 1: MOV (t, n) RCALL g(); - LDI (o, 4) SWAP (t) ANDI (t, 0x0f) ANDI (t, 1) @@ -119,10 +118,10 @@ int main(void) { OR (t, tmp) #undef tmp EOR (t, n) - LDI (o, 2) RCALL g(); - t >>= o; //NOTE: o == {1, 2, 4} - ANDI (t, 3) + LSR (t) + LSR (t) + ANDI (t, 3) AND (t, s) ADD (acc, t)