Re: Swapping

Gábor Lénárt
2004-06-04T07:38:06Z

On Thu, Jun 03, 2004 at 11:36:59PM +0100, Alan Cox wrote:
> 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.

But you can check content of register CX after rep movsb.
However it seems I've misunderstand your point, sorry.

- Gábor (larta'H)