Hey All,
Just wanted to know how to correctly use the OUT instruction for the x86 instruction set
I'd like to output some data on the serial port which for me is 3F8h IRQ4.
So I set up a test program as follows:
.386
.model flat,stdcall
.code
main PROC
L1:
mov eax,1
nop
mov dx,3F8h
nop
out dx,al
jmp L1
ret
main ENDP
END main
Compiles and links fine, but when run it crashes.
How would I go about sending just a simple loop of 1's across a serial pin?
Thanks!