new version
authorTobias Girstmair <t@thi3nkpad.lan>
Tue, 13 Nov 2018 00:15:28 +0000 (01:15 +0100)
committerTobias Girstmair <t@thi3nkpad.lan>
Tue, 13 Nov 2018 00:15:28 +0000 (01:15 +0100)
foo.c

diff --git a/foo.c b/foo.c
index 8c1e45a4140aa4d1e3d8b374edc67a619aaed5bc..6c79b3520fc1a418cad65b7043049f6d40756064 100644 (file)
--- a/foo.c
+++ b/foo.c
@@ -47,12 +47,14 @@ int main(void) {
                LSR     (tmp)
                OR      (n, tmp)
                #undef tmp
-               #define tmp acc
                MOV     (s, i3)
                ROR     (s)
                ROR     (s)
                ANDI    (s, 0x80)
-               s = (s | i2>>1);
+               #define tmp acc
+               MOV     (tmp, i2)
+               LSR     (tmp)
+               s = (s | tmp);
                #undef tmp
 
                //voice 1:
Imprint / Impressum