Hi Mary Robi,

> I am programming a OS that uses FreeDOS as the
> bootloader and I want to know how to get kernel version.

You can use the normal int 21.30 call: We return MS
DOS style version numbers such as 5.0, 6.22 or 7.10
in AL.AH to indicate compatibility levels, but the
BL part of the "serial number" is used for a FreeDOS
version (for example decimal 39: FreeDOS kernel 2039)
and if you call int 21 (hex) with ax=3000 (hex) then
you also get fd as the returned OEM ID value of BH
to indicate that the kernel is from the FreeDOS family.

As Christian already said, once you checked that your
DOS is a FreeDOS, you can call int 21 with ax = 33ff
to receive a pointer in DX:AX (segment:offset) to a
string which describes the FreeDOS version as text.

The string ends with a  00  byte and can for example
mention whether the kernel is made for 386 CPU, which
compiler was used to make it and when it was compiled.

Eric


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to