new version
[Chiptunes.git] / foo.c
diff --git a/foo.c b/foo.c
index 71154c95f2baaf15f4fe073f002c9ca5ec0d0661..7c030a4a2cf2b4eb7645f75f27643342f5dbea97 100644 (file)
--- a/foo.c
+++ b/foo.c
@@ -94,7 +94,11 @@ int main(void) {
                ADD     (acc, t)
 
                //voice 4:
-               x = s / 5;
+               MOV     (x, s)
+               INC     (x)
+               #define tmp o
+               x = (x*0x33)>>8;
+               #undef tmp
                t = 8 + n - (((i3&0x01)<<14 | i2<<6 | i1>>2) % 3);
                LDI     (o, 9)
                RCALL   g();
Imprint / Impressum