summaryrefslogtreecommitdiff
path: root/devel/bcc/patches/patch-ak
blob: ca49cfbcf9f2d77b8348cfa86f8d4f3176cb76e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
$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);