36 lines
1.1 KiB
Text
36 lines
1.1 KiB
Text
$NetBSD: patch-ak,v 1.2 1998/08/07 10:40:21 agc Exp $
|
|
|
|
--- as/mops.c.orig Thu Jul 16 20:03:35 1998
|
|
+++ as/mops.c Thu Jul 16 20:05:45 1998
|
|
@@ -547,7 +547,7 @@
|
|
mcount += asize;
|
|
}
|
|
else if (lastexp.offset != 0x0 ||
|
|
- eap->base == BPREG && eap->index == NOREG ||
|
|
+ (eap->base == BPREG && eap->index == NOREG) ||
|
|
eap->base == EBPREG)
|
|
{
|
|
postb |= MEM1_MOD;
|
|
@@ -917,8 +917,8 @@
|
|
if (!(lastexp.data & UNDBIT) && lastexp.offset != 0x1)
|
|
{
|
|
if (eap->base <= MAX16BITINDREG ||
|
|
- lastexp.offset != 0x2 && lastexp.offset != 0x4 &&
|
|
- lastexp.offset != 0x8)
|
|
+ (lastexp.offset != 0x2 && lastexp.offset != 0x4 &&
|
|
+ lastexp.offset != 0x8))
|
|
error(ILL_SCALE);
|
|
else
|
|
{
|
|
@@ -1589,9 +1589,9 @@
|
|
{
|
|
if (target.indcount == 0x0 && (target.base == ALREG ||
|
|
target.base == AXREG ||
|
|
- target.base == EAXREG &&
|
|
+ (target.base == EAXREG &&
|
|
(source.displ.data & (FORBIT | RELBIT | UNDBIT) ||
|
|
- !is8bitsignedoffset(source.displ.offset))))
|
|
+ !is8bitsignedoffset(source.displ.offset)))))
|
|
{
|
|
opcode |= 0x04 | segword;
|
|
buildimm(&source, FALSE);
|