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

diff --git a/foo.c b/foo.c
index 473484a..822917f 100644 (file)
--- a/foo.c
+++ b/foo.c
@@ -100,7 +100,6 @@ int main(void) {
                //voice 1:
                MOV     (t, n)
                RCALL   g();
-               LDI     (o, 4)
                SWAP    (t)
                ANDI    (t, 0x0f)
                ANDI    (t, 1)
@@ -119,10 +118,10 @@ int main(void) {
                OR      (t, tmp)
                #undef tmp
                EOR     (t, n)
-               LDI     (o, 2)
                RCALL   g();
-       t >>= o; //NOTE: o == {1, 2, 4}
-       ANDI    (t, 3)
+               LSR     (t)
+               LSR     (t)
+               ANDI    (t, 3)
                AND     (t, s)
                ADD     (acc, t)
 
Imprint / Impressum