X-Git-Url: https://git.gir.st/Chiptunes.git/blobdiff_plain/649bb224b69d87452d2dd9021988bc3499cbbeb1..d39a46f5707cd1773ca6c4cc3301c66349a795d5:/foo.c diff --git a/foo.c b/foo.c index 11e8da1..fbe306c 100644 --- a/foo.c +++ b/foo.c @@ -152,7 +152,17 @@ int main(void) { LSR (tmp) OR (Ml, tmp) #undef tmp - Mh = i3<<5 | i2>>3; + MOV (Mh, i3) + SWAP (Mh) + ANDI (Mh, 0xf0) + LSL (Mh) + #define tmp _ + MOV (tmp, i2) + LSR (tmp) + LSR (tmp) + LSR (tmp) + OR (Mh, tmp) + #undef tmp RCALL mod3(); ADD (t, n) LDI (o, 2)