Browse Source

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

ceriel 36 years ago
parent
commit
8d4bc3d9c8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mach/6809/as/mach5.c

+ 1 - 1
mach/6809/as/mach5.c

@@ -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 {