Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

How to detect FreeDOS kernel from Turbo Pascal program? (Developers)

posted by rosegondon, C:\DOS, 14.01.2022, 22:39

Hello,

I am looking for a method of detection of running FreeDOS kernel from Turbo Pascal compiled program. Because under FreeDOS various shells can be loaded (for example FreeCOM can be replaced by 4DOS) this cannot be a method referring to simple shell call. What I need is to find if my Pascal program runs under FreeDOS kernel, regardless of the command interpreter used.

For now I use ugly and dirty code of type "if exist {boot drive}\kernel.sys then RunningUnderFreeDOS" but this ugliness fails miserably when multiboot (and multikernel) configuration is working because while kernel.sys is present, it doesn't mean it is loaded.

---
echo g=ffff:0|debug>nul

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 154 users online (0 registered, 154 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum