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