VOGONS

Common searches


First post, by MontyOnTheRun

User metadata
Rank Newbie
Rank
Newbie

I was wondering is there is any way to detect in runtime if we're running inside DOSBox? Maybe exploit some quirk on the emulation that would allow probing the "system"? It would be useful for debugging stuff that's only available in real hardware ie: I'm working on OPL2LPT support for my games - having that output redirected to a regular Adlib (when applicable) would be useful.

Thanks!

Context: I'm using GCC 7.1 with DJGPP.

Reply 1 of 6, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

I am sure this question has been answered before. DOSBox has written DOSBox at several location in the emulation memory (like the bios name for example) (which you can find in the ROM at the right location)

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

Reply 4 of 6, by Srandista

User metadata
Rank Oldbie
Rank
Oldbie

Could you please re-upload it, if you have it (the original upload is down)?

Socket 775 - ASRock 4CoreDual-VSTA, Pentium E6500K, 4GB RAM, Radeon 9800XT, ESS Solo-1, Win 98/XP
Socket A - Chaintech CT-7AIA, AMD Athlon XP 2400+, 1GB RAM, Radeon 9600XT, ESS ES1869F, Win 98

Reply 6 of 6, by IIGS_User

User metadata
Rank Oldbie
Rank
Oldbie
Srandista wrote:

Could you please re-upload it, if you have it (the original upload is down)?

This is db-info.bat made by forum member Minimax, but be aware that there will be some incompatibilities with the latest versions of DOSBox.

Attachments

  • Filename
    db-info.zip
    File size
    1.93 KiB
    Downloads
    83 downloads
    File comment
    db-info.bat by forum member Minimax
    File license
    Fair use/fair dealing exception

Klimawandel.