new version
[Chiptunes.git] / foo.c
diff --git a/foo.c b/foo.c
index f135f288387ebe5d225706bdad0abc8fa85b71d8..dc9d62e6a009096be598aae2e7e3ec92fbf84db7 100644 (file)
--- a/foo.c
+++ b/foo.c
@@ -100,7 +100,8 @@ int main(void) {
                #define tmp o
                x = (x*0x33)>>8;
                #undef tmp
-               t = 8 + n - (((i3&0x01)<<14 | i2<<6 | i1>>2) % 3);
+               t = n - (((i3&0x01)<<14 | i2<<6 | i1>>2) % 3);
+               SUBI    (t, -8)
                LDI     (o, 9)
                RCALL   g();
                ADD     (acc, t)
Imprint / Impressum