First post, by Peter Swinkels
Curious as how to use the OPEN COM statement found in many older BASIC dialects I wrote this quick piece of code based on an example:
OPEN "COM1:9600,N,8,1,BIN" FOR OUTPUT AS #1
PRINT #1, "Hi!"
CLOSE #1
In my DOSBox-X config file I have this line:
serial1 = file file:output1.txt timeout:1000 openwith:notepad
DOSBox-X appears to give no errors and my code runs without errors, however no output1.txt file appears to have been created. Could someone more familiar with the specifics of redirecting serial port communication in DOBox-X point me in the right direction?
PS:
Running under regular DOSBox the code procedues a device timeout error. Which implies DOSBox-X appears to be emulating a COM device in some fashion. The question remains, where's my output going?
(And yes, I posted this at vbforums as well.)
My GitHub:
https://github.com/peterswinkels