From 7716b4275b01a407ee7d510456415e55f636ae71 Mon Sep 17 00:00:00 2001 From: Tobias Girstmair Date: Tue, 13 Nov 2018 19:17:47 +0100 Subject: [PATCH] new version --- foo.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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) -- 2.39.3