new version
[Chiptunes.git] / foo.c
diff --git a/foo.c b/foo.c
index 8c1e45a4140aa4d1e3d8b374edc67a619aaed5bc..6c1e73834f4ecc6d6923cf94f8b6c5412513405f 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)
+               OR      (s, tmp)
                #undef tmp
 
                //voice 1:
Imprint / Impressum