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>ins input string from port (186/286/386) flags: o d i t s z a p c</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INS         Input String From Port  (186/286/386)    Flags: O D I T S Z A P C

INS [ES:]destination, DX

           Logic:          destination . source port
                           if DF = 0 then
                               DI . DI + delta
                           else
                               DI . DI - delta

     The INS instructions lets you read a string from a port. The destination
     string is pointed to by ES:DI (even if a destination operand is given).
     The input port number must be in DX. If the direction flag is set, DI is
     decremented. If it is not set, DI is incremented.

     To use INS, the destination operand must be provided so the assembler
     knows the size of each data item. Segment overrides are allowed.

  --------------------------------------------------------------------------
   Operands                   Clocks   Transfers  Bytes  Example
   INS                        5         1 or 2      4    INS STRING2, DX
  --------------------------------------------------------------------------

        Note:          This instruction is usually used with a REP
                       prefix. Load CX with the number of times to repeat
                       the instruction.

See Also: INSB INSW INSD REP

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