Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

21.33FF kernel version string interface (Developers)

posted by rosegondon, C:\DOS, 17.01.2022, 20:06

> > > I am looking for a method of detection of running FreeDOS kernel
> >
> > set ax=0x3000 and call int 0x21, check whether the returned bh is 0xfd.
> >
> > if yes, set ax=0x33ff and call int 0x21, it returns a pointer dx:ax to a
> > version string.
> >
> > how to express this in the programming language of your choice is up to
> > you, please share an example implementation code snippet here :-)
>
> Here's an example for the latter call in 8086 NASM assembly:
> callver.asm
>
>
> mov ax,33ffh    ; get FreeDOS version string pointer
> xor dx, dx
> int 21h               ; returns DX AX
> test dx, dx
> jnz gotname
> mov dx, ds
> mov ax, msgnoname
>

>
> The returned pointer is an ASCIZ string that may have trailing whitespace
> (such as CR or LF). There is some code following the quoted part that will
> ignore trailing whitespace.

How to get this version string in Pascal?

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

 

Complete thread:

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