new version
authorTobias Girstmair <t@thi3nkpad.lan>
Mon, 12 Nov 2018 23:45:20 +0000 (00:45 +0100)
committerTobias Girstmair <t@thi3nkpad.lan>
Mon, 12 Nov 2018 23:45:20 +0000 (00:45 +0100)
foo.c

diff --git a/foo.c b/foo.c
index 8eb42f3373b0d340fc433e792e4d4aa9750d05a7..8b72c58b0930933edf8e603b7f0d8d820012a45e 100644 (file)
--- a/foo.c
+++ b/foo.c
@@ -57,7 +57,7 @@ int main(void) {
 
                //voice 3:
                x = s / 3;
-               t = n + ((i >> 11) % 3);
+               t = n + ((i3<<13 | i2<<5 | i1>>3) % 3);
                LDI     (o, 10)
                RCALL   g(i);
                ADD     (acc, t)
Imprint / Impressum