The instructions that are used for reading an input port and writing an output port respectively are
(a) MOV, XCHG
(b) MOV, IN
(c) IN, MOV
(d) IN, OUT
The question was posed to me in an online interview.
Origin of the question is Instruction Set of 8086/8088 in chapter 8086/88 Instruction Set and Assembler Directives of Microprocessor