new version
authorTobias Girstmair <t@thi3nkpad.lan>
Tue, 13 Nov 2018 18:10:14 +0000 (19:10 +0100)
committerTobias Girstmair <t@thi3nkpad.lan>
Tue, 13 Nov 2018 18:10:14 +0000 (19:10 +0100)
foo.c

diff --git a/foo.c b/foo.c
index fd649da..0ae3ed1 100644 (file)
--- a/foo.c
+++ b/foo.c
@@ -171,23 +171,6 @@ int main(void) {
                ADD     (acc, t)
 
                //voice 4:
-               MOV     (x, s)
-               INC     (x)
-               #define tmp o
-                MOV    (tmp, x)
-               LSR     (tmp)
-                ADD    (tmp, x)
-               ROR     (tmp)
-               LSR     (tmp)
-               LSR     (tmp)
-                ADD    (tmp, x)
-               ROR     (tmp)
-                ADD    (tmp, x)
-               ROR     (tmp)
-               LSR     (tmp)
-               LSR     (tmp)
-                MOV    (x, tmp)
-               #undef tmp
                MOV     (Ml, i2)
                SWAP    (Ml)
                ANDI    (Ml, 0xf0)
@@ -216,6 +199,23 @@ int main(void) {
                SUBI    (t, -8)
                LDI     (o, 1)
                RCALL   g();
+               MOV     (x, s)
+               INC     (x)
+               #define tmp o
+                MOV    (tmp, x)
+               LSR     (tmp)
+                ADD    (tmp, x)
+               ROR     (tmp)
+               LSR     (tmp)
+               LSR     (tmp)
+                ADD    (tmp, x)
+               ROR     (tmp)
+                ADD    (tmp, x)
+               ROR     (tmp)
+               LSR     (tmp)
+               LSR     (tmp)
+                MOV    (x, tmp)
+               #undef tmp
                AND     (t, x)
                ADD     (acc, t)
 
Imprint / Impressum