On Fri, Nov 30, 2012 at 2:20 PM, Ralf A. Quint <[email protected]> wrote:
> At 01:10 PM 11/30/2012, Ladislav Lacina wrote:
>>I haven't expect that somebody on this forum doesn't understand
>>"seges lea di,A" instruction. So explanation:LEA DI,a - load address
>>of A into DS:DISEGES LEA DI,a load address of A into ES:DI
>
> Careful!
>
> As I mentioned, I have never see or used the SEGES instruction and I
> am using Borland Pascal 7 ever since it was released, in fact almost
> daily (ok, weekly) use it for a lot of "quick and dirty" stuff...
> And I am using x86 assembler for pretty much 30 years by now!

I am not familiar with Borland Pascal's inline assembler syntax, but
presumably "SEGES" is the ES segment override prefix (26h), which is
meaningless with LEA.  Only the destination register - DI in this case
- will be modified by LEA; the segment override will be ignored
completely.  (

Ralf's explanation is correct; LES loads both ES and the destination
register (DI) with the full far pointer/16:16 address.

-- Daniel Verkamp

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to