Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TASM 2.x / MASM 6.x Assembly Language - <b>les load pointer using es flags: not altered</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
LES              Load Pointer using ES               Flags: not altered

LES dest-reg,source

          Logic:    ES . (source)
                    dest-reg . (source + 2)

    LES loads into two registers the 32-bit pointer variable found in
    memory at source. LES stores the segment value (the higher order word
    of source) in ES and the offset value (the lower order word of
    source) in the destination register. The destination register may be
    any 16-bit general register (that is, all registers except segment
    registers).

  --------------------------------------------------------------------------
   Operands                  Clocks   Transfers  Bytes   Example
   reg16, mem32             24 + EA       2       2-4    LES DI, STR_ADDR
  --------------------------------------------------------------------------

       Note:          LDS, Load Pointer Using DS, is a comparable
                      instruction that loads the DS register rather than
                      the ES register.

See Also: LEA LDS OFFSET EA

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson