36 lines
1.2 KiB
Text
36 lines
1.2 KiB
Text
$NetBSD: patch-ak,v 1.3 2006/10/10 06:56:05 uebayasi Exp $
|
|
|
|
--- as/mops.c.orig 1993-07-10 20:36:55.000000000 +0200
|
|
+++ as/mops.c
|
|
@@ -547,7 +547,7 @@ register struct ea_s *eap;
|
|
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 @@ register struct ea_s *eap;
|
|
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 @@ PUBLIC void mgroup1()
|
|
{
|
|
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);
|