X-Git-Url: https://git.gir.st/Chiptunes.git/blobdiff_plain/df1928229e9a3908d9a900b42162c0811ffdbe95..e389879f63ee13e638364da4a624a1b3d137f8a5:/foo.c diff --git a/foo.c b/foo.c index 85cafb7..6c1e738 100644 --- a/foo.c +++ b/foo.c @@ -47,13 +47,14 @@ int main(void) { LSR (tmp) OR (n, tmp) #undef tmp - #define tmp acc MOV (s, i3) - //ROR (s) - //ROR (s) - //ANDI (s, 0x01) - s<<=7; - s = (s | i2>>1); + ROR (s) + ROR (s) + ANDI (s, 0x80) + #define tmp acc + MOV (tmp, i2) + LSR (tmp) + OR (s, tmp) #undef tmp //voice 1: