16 bit Assembly
Home Site Map Instruction Index
The OUT instruction is used to output data from AL or AX to a Port or an Address. This instruction is typically used with a CX counter and LOOP to repeat the task multiple times.
This command can have 1 or 2 parts.
Assembly Sample | Description | 16 bit Machine Code |
---|---|---|
OUT 0x03 | ; Output a byte from AL to 8 bit I/O address | E6 03 |
OUT 0x03 | ; Output a word from AX to 8 bit I/O address | E7 03 |
OUT | ; Output a byte from AL to Port DX | EE |
OUT | ; Output a word from AX to Port DX | EF |