X-Git-Url: https://git.gir.st/Chiptunes.git/blobdiff_plain/bc7680e361d3116a538bb6b9a5e4a658a9fdd71e..5d4207f9a0b24eec52054fa1674cded926f06a72:/foo.c?ds=inline diff --git a/foo.c b/foo.c index c752f28..4caddea 100644 --- a/foo.c +++ b/foo.c @@ -41,8 +41,10 @@ int main(void) { LSL (n) #define tmp acc MOV (tmp, i1) - tmp >>= 6; - n = (n | tmp); + SWAP (tmp) + ANDI (tmp, 0x0f) + tmp >>= 2; + OR (n, tmp) #undef tmp s = (i3<<7 | i2>>1);