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

diff --git a/foo.c b/foo.c
index 5b89b943191fdafe9ca6215186559c35c3ceaadf..c752f285bbbc77e4a8dae5fab84546fff8e85ccf 100644 (file)
--- a/foo.c
+++ b/foo.c
@@ -39,7 +39,11 @@ int main(void) {
                MOV     (n, i2)
                LSL     (n)
                LSL     (n)
-               n = (n | i1>>6);
+               #define tmp acc
+               MOV     (tmp, i1)
+               tmp >>= 6;
+               n = (n | tmp);
+               #undef tmp
                s = (i3<<7 | i2>>1);
 
                //voice 1:
Imprint / Impressum