new version
[Chiptunes.git] / foo.c
diff --git a/foo.c b/foo.c
index 5b89b943191fdafe9ca6215186559c35c3ceaadf..4caddeafebf85fbbbaa77418b9b04b33dcd090bd 100644 (file)
--- a/foo.c
+++ b/foo.c
@@ -39,7 +39,13 @@ int main(void) {
                MOV     (n, i2)
                LSL     (n)
                LSL     (n)
-               n = (n | i1>>6);
+               #define tmp acc
+               MOV     (tmp, i1)
+               SWAP    (tmp)
+               ANDI    (tmp, 0x0f)
+               tmp >>= 2;
+               OR      (n, tmp)
+               #undef tmp
                s = (i3<<7 | i2>>1);
 
                //voice 1:
Imprint / Impressum