慢慢弄呗
START:
MOV DX,01F2H IN AL ,DX CMP AL ,0 JZ ZREO TEST AL , 0F0H JZ HIGH TEST AL ,0FH JZ LOWW JMP START
ZERO: MOV DX,01F3H MOV AL, 0FFH OUT DX, AL
HIGH: MOV DX,01F3H MOV AL, 0F0H OUT DX, AL
LOWW: MOV DX,01F3H MOV AL, 0FH OUT DX, AL