VOGONS

Common searches


OPEN COM and DOSBox-X question.

Topic actions

  • This topic is locked. You cannot reply or edit posts.

First post, by Peter Swinkels

User metadata
Rank Oldbie
Rank
Oldbie

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.)

Do not read if you don't like attention seeking self-advertisements!

Did you read it anyway? Well, you can find all sorts of stuff I made using various programming languages over here:
https://github.com/peterswinkels

Reply 1 of 1, by DosFreak

User metadata
Rank l33t++
Rank
l33t++

Post here for DOSBOX-X DOSBox-X branch
or in the DOSBOX-X github
Also while Milliways is for pretty much anything it's really for off-topic subjects and this is a DOSBOX question so wrong forum.
Closed

How To Ask Questions The Smart Way
Make your games work offline