Mail Archives: djgpp/1996/10/07/19:28:22
> rep movsd ds:[esi],es:[edi]
> I have tried to convert it into 'rep movsl %es:%edi,%ds:%esi', but this does not work.
The problem is your format is completely wrong.
The 'rep movsd' instructions automatically use the es:edi pair as the
destination, and the ds:esi pair as the source.
What you need to do is move the segment and offset values into the
registers first, and then execute the rep movsl instructions.
This is some pseudo code to show you what I mean:
mov source_segment, %ds
mov source_offset, %esi
mov dest_segment, %es
mov dest_offset, %edi
mov count, %ecx
rep
movsl
Note the rep and the movsl are on seperate lines.
Leathal.
- Raw text -