summaryrefslogtreecommitdiff
path: root/devel/bcc/patches/patch-ak
blob: 7648da1e9d534716910eed1212972f1bba8eaab3 (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
--- 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);