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>in input byte or word flags: not altered</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
IN               Input Byte or Word                  Flags: not altered

IN accumulator,port

          Logic:    accumulator . (port)

    IN transfers a byte or a word from a port to AL or AX. The port may be
    specified by an immediate byte value (for ports 0 through 255) or by
    the DX register (allowing access to all ports).

  --------------------------------------------------------------------------
   Operands                  Clocks   Transfers  Bytes   Example
                           byte(word)
   accumulator, immed8       10(14)       1        2     IN AL,45h
   accumulator, DX           8(12)        1        1     IN AX,DX
  --------------------------------------------------------------------------

       Notes:         It is advised that hardware not use I/O ports F8h
                      through FFh, since these are reserved for
                      controlling the math coprocessor and future
                      processor extensions.

See Also: OUT

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