VOGONS


Port I/O on Dosbox

Topic actions

First post, by kinglerch

User metadata
Rank Newbie
Rank
Newbie

I have looked high and low for an explantion on this subject, but I guess it is too cryptic a search term.

I have an old ISA card I need access to in dosbox through io ports. The ports that the ISA card uses is 0x240 (through 0x25F). I have already enabled the ports in XP and can read and write in windows, but these ports are not accessible through dosbox.

Seeing that the soundblaster, serial, and lpt ports are accessible through dosbox, 0x240 should be able to be made available. But I couldn't find out information on how to do this.

How can I enable port 0x240 in dosbox?

Thanks for your help!

Reply 1 of 8, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

You can't. The devices you mention are specifically handled within DOSBox as part of the emulation.

There exists some un-official versions of DOSBox that only works in Windows, or only works in Linux, that provide direct access to some of the real hardware from DOSBox. But where to find them I don't know.

Search, search and search again, and you might find them somewhere. But I very much doubt that any of these versions (builds) will give you access to that ISA card.

Of course, if you have a lot of money, I am sure you could bribe one of the developers to create a version that will do what you want.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 2 of 8, by kinglerch

User metadata
Rank Newbie
Rank
Newbie

It seems like Port IO would be possible with dosbox, or at least a simple addition. There are so many IO ports exposed for soundblaster, midi, game controllers, serial/parallel ports, etc.

Is there no way to (for example) set up a fake midi device for 0x240 and use my ISA card instead? It's just a simple Digital I/O card with no IRQ/DMA so it'd be a shame if it couldn't work.

Thanks for your help!

Reply 3 of 8, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

not a shame. but a clear choice.

Water flows down the stream
How to ask questions the smart way!

Reply 4 of 8, by kinglerch

User metadata
Rank Newbie
Rank
Newbie

I don't understand, can you explain?

Reply 5 of 8, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

dosbox is not intended for this. And there are NO ports exposed at all.

Reply 6 of 8, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

DOSBox is about one thing only:

Re: DOS 5.0

Supporting obscure hardware, printers, etc are not something you are likely to see.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 7 of 8, by kinglerch

User metadata
Rank Newbie
Rank
Newbie
wd wrote:

dosbox is not intended for this. And there are NO ports exposed at all.

I thought there were ports exposed for the soundblaster, midi, serial/paraller ports, game controler, etc. I apologize if I misunderstood.

MiniMax wrote:

Supporting obscure hardware, printers, etc are not something you are likely to see.

I thought port I/O was more of a feature (something even available in the limp XP DOS) not obscure. Certainly it would be a nice addition if it wasn't too difficult.

Reply 8 of 8, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

soundblaster and such are pure emulated ports. They have no connections with your real io ports.
Regardless whether it is nice or difficult, it is useless for DOS games.

Water flows down the stream
How to ask questions the smart way!