X-Git-Url: https://git.gir.st/Chiptunes.git/blobdiff_plain/8d8c00e4909d9744682e557833a0a7abb071fb90..c3639d5b8a3f9e357d35eb9b720e7dfc83c6f6f2:/fakeasm.h?ds=sidebyside diff --git a/fakeasm.h b/fakeasm.h index cfb4598..cffa6d8 100644 --- a/fakeasm.h +++ b/fakeasm.h @@ -29,3 +29,6 @@ int asmtmp = 0; #define ROL(x) asmtmp = x>>7; x <<= 1; x |= carry; carry = asmtmp; #define ROR(x) asmtmp = x&0x1; x >>= 1; x |= carry<<7; carry = asmtmp; #define NEG(x) x *= -1; +int sr_neg = 0; +#define CPI(x,n) sr_neg = (x-n < 0); //WARN: not a complete CPI mockup +#define BRPL(l) if (sr_neg) goto l;