new version
[Chiptunes.git] / foo.c
diff --git a/foo.c b/foo.c
index 45b8fc13d4be407f96f0ef53689a17e8176f38fc..f3bbac5aaebe68833f357874e60aee3055da21c9 100644 (file)
--- a/foo.c
+++ b/foo.c
@@ -37,7 +37,10 @@ int main(void) {
        //TODO: clear all vars/registers
        for (;;) {
                acc = 0;
-               n = (i2<<2 | i1>>6);
+               MOV     (n, i2)
+               LSL     (n)
+               LSL     (n)
+               n = (n | i1>>6);
                s = (i3<<7 | i2>>1);
 
                //voice 1:
Imprint / Impressum