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

diff --git a/foo.c b/foo.c
index 06ff396e4838d7e6f9ad853555554167eaf8da66..d1b45f086e56abc8d281e40e6e77da6e9f021e55 100644 (file)
--- a/foo.c
+++ b/foo.c
@@ -50,12 +50,15 @@ int main(void) {
                //voice 2:
                MOV     (x, s)
                #define tmp o
-               MOV     (o, i2)
-               LSL     (o)
-               LSL     (o)
-               LSL     (o)
+               MOV     (tmp, i2)
+               LSL     (tmp)
+               LSL     (tmp)
+               LSL     (tmp)
+               MOV     (t, i1)
+               t >>= 5;
+               OR      (t, tmp)
                #undef tmp
-               t = n ^ (o | i1>>5);
+               t = n ^ (o | t);
                LDI     (o, 10)
                RCALL   g();
                ADD     (acc, t)
Imprint / Impressum