OUT DX,AL
MOV DX,2FH
MOV AL,00H
OUT DX,AL
---------------------------------------
Configure input / output
---------------------------------------
MOV DX,2EH
MOV AL,FOH
OUT DX,AL
MOV DX,2FH
MOV AL,FEH;
Setup GPIO bit 0 as output, Note1
OUT DX,AL
--------------------------------------------------------------------------------------
**Note 1**
Example:
Output Bit
Bit 0
Bit 1
Bit 2
Bit 3
Bit 4
Bit 5
Bit 6
Bit 7
24
Instruction
MOV AL,FE
MOV AL,FD
MOV AL,FB
MOV AL,F7
MOV AL,EF
MOV AL,DF
MOV AL,BF
MOV AL,7F