Eero Pajarre <[EMAIL PROTECTED]> writes:
> in mmx_blend I met a problem which I did
> not completly understand:
>
> the .S source
> LEA_L ( REGDIS(0,EAX,2), EDX )
> was preprocessed to
> lea ECX, dword [EDX * 8 + 0]
>
> but this produced error like
> X86\mmx_blend.as:1773: mismatch in operand sizes
>
> I managed to fix this by hacking the assyntax.h and
> the mmx_blend.S files so that the input to nasm was:
> lea ECX, [EDX * 8 + 0]
>
>
> but I am not 100 sure if this is the correct fix.
> (nor do I have mmx processor)
I would have thought nasm would accept that. Anyway, here's a fix for
assyntax. There is a lock on src/X86, so I can't check it in right
now.
--- cvs/src/X86/assyntax.h Wed Jul 14 22:42:27 1999
+++ X86tmp/assyntax.h Sat Jul 24 22:53:10 1999
@@ -1031,6 +1031,7 @@
* Redefine assembler commands
*/
+#define P_(a) P_ ## a
#define X_(a) X_ ## a
#define D_(a) D_ ## a
#define S_(a) L_ ## a
@@ -1150,8 +1151,8 @@
#define JMPF(s,a) jmpf
#define LAHF lahf
#define LAR(a, b) lar b, a
-#define LEA_L(a, b) lea L_(b), L_(a)
-#define LEA_W(a, b) lea W_(b), W_(a)
+#define LEA_L(a, b) lea P_(b), P_(a)
+#define LEA_W(a, b) lea P_(b), P_(a)
#define LEAVE leave
#define LGDT(a) lgdt a
#define LIDT(a) lidt a
_______________________________________________
Mesa-dev maillist - [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev