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

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