The instructions that are used for reading an input port and writing an output port respectively are

Tâm Tây

New member
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
 
Answer: d
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.
 

Tìm kiếm

Back
Top