Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Assembly Language - <b>lds load pointer using ds flags: not altered</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
LDS              Load Pointer using DS               Flags: not altered

LDS  destination,source

          Logic:    DS . (source + 2)
                    destination . (source)

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

  --------------------------------------------------------------------------
   Operands                  Clocks   Transfers  Bytes   Example
   reg16, mem32             24 + EA       2       2-4    LDS DI,32_POINTER
  --------------------------------------------------------------------------

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

See Also: LEA LES OFFSET EA

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