I thought that les is similar to lea and will put the seg, offset of
variable into es:di
On Saturday, December 1, 2012, Tom Ehlert wrote:
>
> >>3). "LES DI,mem" loads ES:DI with the 32-bit pointer value stored at
> >>[mem], not the address of mem itself.
>
> > The "LES, DI, a" instruction that I have give as a
> > correct/alternative instruction will do exactly what is intended,
> > setting ES:DI to the address of the buffer that us to be filled with
> > the function call...
> definitively not.
>
> LES, DI, a
>
> will load ES:DI with the *content* of a, not the address of a
>
> some compilers (MSC, TurboC) accept
>
> mov ax, seg a
> mov es, ax
> lea di, a
>
>
>
> Tom
>
>
>
> ------------------------------------------------------------------------------
> Keep yourself connected to Go Parallel:
> INSIGHTS What's next for parallel hardware, programming and related areas?
> Interviews and blogs by thought leaders keep you ahead of the curve.
> http://goparallel.sourceforge.net
> _______________________________________________
> Freedos-devel mailing list
> Freedos-devel@lists.sourceforge.net <javascript:;>
> https://lists.sourceforge.net/lists/listinfo/freedos-devel
>
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
INSIGHTS What's next for parallel hardware, programming and related areas?
Interviews and blogs by thought leaders keep you ahead of the curve.
http://goparallel.sourceforge.net
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel