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, 18.01.2022, 09:06

> > How to get this version string in Pascal?
>
> :)
>
> function GetFreeDosVer : pchar; assembler;
> asm
> > > mov ax,$33ff ; get FreeDOS version string pointer
> > > xor dx, dx
> > > int $21 ; returns DX AX
> > > test dx, dx
> > > jnz @gotname
> xor ax, ax
> mov dx, ax
> @gotname:
> end;

Uses Strings;
Begin
Writeln(StrPas(GetFreeDosVer));
End.

Under MS-DOS this function returns a string of random characters. Shouldn't it return empty result under DOS other than FreeDOS?

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

 

Complete thread:

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