Re: Swapping

Gábor Lénárt
2004-05-28T15:01:16Z

On Fri, May 28, 2004 at 07:56:10AM -0700, Tommy McCabe wrote:
> > > instructions that did the post increment/decrement
> > might or might
> > > not have changed the values. The 8086 is in this
> > category, the 80286
> > > is [with sufficient care] not.
>
> I think he means "on the 8086, if you're copying X
> bytes from A to B, and there's some error, you can't
> tell how much of it has been copied".

I see, and maybe I haven't got enough knowledge on this, but the example
I've shown below uses "rep movsb" to move bytes by bytes. If you interrupt
this, you can examine register CX to check the copy process.

- Gábor (larta'H)