TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: CRAIG HART
from: MARTIN PREUSS
date: 1997-06-16 16:03:00
subject: Re: ASM optimiser

Craig, 13.06.97 ("ASM optimiser"):
[...]
> or turning a REP MOVSW into a REP MOVSD (it
> > would
> > have to find where you assigned CX as well)...
>
>CX does not need to change for any form of the rep instruction. If what you
>are trying to say is that rep movsd uses ecx, guess again. it does not.
Of course CX has to change !
There is a difference between transporting a byte or a dword, as you know.  
If the source says MOVB and you change it to MOVSD then you have to divide  
CX by 4. BTW: Therefore you do not have to search for the line assigning  
CX, you just have to shift CX right (twice, will only work if
CX MOD 4 ==0). And the REP MOVS? uses ECX if you use the address size  
prefix (67h, uses ECX, eSI, eDI instead of CX, SI, DI).
read'ya
mp
e-Mail: m.preuss@whvserve.de
WWW:    http://home.t-online.de/home/aquamaniac (Assembler-Infos)
--- Krosspeunt 3.11
---------------
* Origin: Mind the gap (2:2426/5060.62)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.