Search code examples
assemblyserial-portx86-16

Using COM port 8086 Assembly


I am trying to send data over the COM port using assembly language. I am using DOSBOX on windows to allow running 16 bit applications. I am also using MASM 5.1. Windows shows me that my first COM port is at 03F8H. I used INT 14H with 0 assigned to DX nothing was sent, Tried assigning 03F8H to the DX but it was no good.

MOV DX,0H
MOV AL,'1'
MOV AH,01H
INT 14H
MOV AH,4CH
INT 21H

After setting DOSBOX's serial port to the direct one it just set all the lines to 0


Solution

  • After setting DOSBOX's Serial port it worked. Thanks a lot guys