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

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