Re: Swapping

Alan Cox
2004-06-03T22:36:59Z

On Gwe, 2004-05-28 at 08:52, Gábor Lénárt wrote:

> mov cx,32
> push ds
> pop es
> mov si,0x100
> mov di,0x200
> rep movsb
>
> This code (in intel asm syntax) copies 32 bytes from offset 0x100 to
> 0x200 withing the data segment. If you interrupt rep prefixed movsb
> register cx should inform you the state of the prefixed movsb.

So you get an exception in the rep movsb - how many bytes were copied ?
Did the fault occur before or after the increment ? This kind of
question.