X-Git-Url: https://git.gir.st/Chiptunes.git/blobdiff_plain/5d4207f9a0b24eec52054fa1674cded926f06a72..e389879f63ee13e638364da4a624a1b3d137f8a5:/foo.c diff --git a/foo.c b/foo.c index 4caddea..6c1e738 100644 --- a/foo.c +++ b/foo.c @@ -43,10 +43,19 @@ int main(void) { MOV (tmp, i1) SWAP (tmp) ANDI (tmp, 0x0f) - tmp >>= 2; + LSR (tmp) + LSR (tmp) OR (n, tmp) #undef tmp - s = (i3<<7 | i2>>1); + MOV (s, i3) + ROR (s) + ROR (s) + ANDI (s, 0x80) + #define tmp acc + MOV (tmp, i2) + LSR (tmp) + OR (s, tmp) + #undef tmp //voice 1: LDI (x, 1)