Does any one have some code or a program that you can tell if to commands pair?
mov eax,0
mov ebx,0
these two pair right?
Posted on 2003-07-14 04:16:22 by Josh160
There is a help file with MASM32 by Agner Fog that explains pairing and pentium optimization. It's a very good read. Yes, the mov instruction will pair in either pipe as long as there is not a read after a write to the same register.
Posted on 2003-07-14 04:33:13 by donkey
Thanks, I didn't know they're are all those help topics in masm.
Posted on 2003-07-16 04:30:07 by Josh160

Does any one have some code or a program that you can tell if to commands pair?
mov eax,0
mov ebx,0
these two pair right?


why mov eax,0 when xor eax,eax is smaller and faster
Posted on 2003-07-19 22:55:50 by rob.rice
the result's a different.
xor eax,eax just clears eax. the paired instructions sould be faster than [ xor eax,eax; xor ebx, ebx ]. of course the code's bigger
Posted on 2003-07-20 13:48:01 by hartyl