Google News
logo
Electronics and Communication Engineering (ECE) : Microprocessors - Quiz(MCQ)
The instructions that are used for reading an input port and writing an output port respectively are
A)
IN, MOV
B)
IN, OUT
C)
MOV, IN
D)
MOV, XCHG

Correct Answer : Option (B) :   IN, OUT


Explanation : The address of the input/output port may be specified directly or indirectly.
Example for input port: IN AX, DX; This instruction reads data from a 16-bit port whose address is in DX and stores it in AX
Example for output port: OUT 03H, AL; This sends data available in AL to a port whose address is 03H.

Advertisement