X-Git-Url: https://git.gir.st/Chiptunes.git/blobdiff_plain/30966f17fe9e5cc620c6fe5a62fa0b9888a80a94..44e34da036f83d3efd6384cdc37ec9bd3e234e3a:/fakeasm.h diff --git a/fakeasm.h b/fakeasm.h index 0e31859..e548517 100644 --- a/fakeasm.h +++ b/fakeasm.h @@ -33,6 +33,6 @@ int asmtmp = 0; #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 CPI(x,n) sr_neg = (x-n < 0);sr_zero = (x-n == 0); //WARN: not a complete CPI mockup #define BRPL(l) if (sr_neg) goto l; #define RJMP(l) goto l;