You are here : assembly8086OUT

OUT - 8086

Output from AL or AX to port.

First operand is a port number.

If required to access port number over 255 - DX register should be used.


Syntax

OUT im.byte, AL
OUT im.byte, AX
OUT DX, AL
OUT DX, AX 


Example

MOV AX, 0FFFh ; Turn on all
OUT 4, AX ; traffic lights.
MOV AL, 100b ; Turn on the third
OUT 7, AL ; magnet of the stepper-motor. 


Output / Return Value


Limitations


Alternatives / See Also


Reference