fix from Leo van Moergestel: signed byte offset must fit in a byte

This commit is contained in:
ceriel 1988-07-26 11:02:13 +00:00
parent b1dc8c8f52
commit 52d5e473c4

View file

@ -92,7 +92,7 @@ expr_t exp;
-16 <= exp.val && exp.val <= 15
)
emit1(reg + ind + (exp.val & 037));
else if ((exp.typ&S_TYP)==S_ABS && -256<=exp.val && exp.val<=255) {
else if ((exp.typ&S_TYP)==S_ABS && -128<=exp.val && exp.val<=127) {
emit1(0x88 + reg + ind);
emit1(exp.val);
} else {