X-Git-Url: https://git.gir.st/Chiptunes.git/blobdiff_plain/4b0b7dc568146ee9bcdc8c8761810d5663c58e43..5d4207f9a0b24eec52054fa1674cded926f06a72:/foo.c?ds=inline diff --git a/foo.c b/foo.c index 45b8fc1..4caddea 100644 --- a/foo.c +++ b/foo.c @@ -36,8 +36,16 @@ int main(void) { u8 acc; //TODO: clear all vars/registers for (;;) { - acc = 0; - n = (i2<<2 | i1>>6); + MOV (n, i2) + LSL (n) + LSL (n) + #define tmp acc + MOV (tmp, i1) + SWAP (tmp) + ANDI (tmp, 0x0f) + tmp >>= 2; + OR (n, tmp) + #undef tmp s = (i3<<7 | i2>>1); //voice 1: