Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

You will lose an important disk file.


devel / alt.lang.asm / Re: Which "DOS" version is my program running on ?

SubjectAuthor
* Which "DOS" version is my program running on ?R.Wieser
+* Re: Which "DOS" version is my program running on ?wolfgang kern
|`* Re: Which "DOS" version is my program running on ?R.Wieser
| `- Re: Which "DOS" version is my program running on ?wolfgang kern
+* Re: Which "DOS" version is my program running on ?JJ
|`- Re: Which "DOS" version is my program running on ?R.Wieser
`* Re: Which "DOS" version is my program running on ?wolfgang kern
 `- Re: Which "DOS" version is my program running on ?R.Wieser

1
Which "DOS" version is my program running on ?

<ur1m02$2d7rp$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=486&group=alt.lang.asm#486

  copy link   Newsgroups: alt.lang.asm
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.lang.asm
Subject: Which "DOS" version is my program running on ?
Date: Tue, 20 Feb 2024 08:56:35 +0100
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <ur1m02$2d7rp$1@dont-email.me>
Injection-Date: Tue, 20 Feb 2024 07:56:50 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="be9647c331319dad71906323b5f80a9f";
logging-data="2531193"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX180rsnYxjyyrPeAP9GEvrmaYbpGv0NiSnV+rkdFl3oDFA=="
Cancel-Lock: sha1:5hBegw0A1AQBMujrVkKi1d8qOWw=
X-MSMail-Priority: Normal
X-RFC2646: Format=Flowed; Original
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
 by: R.Wieser - Tue, 20 Feb 2024 07:56 UTC

Hello all,

I have a rather old program which first checks which version of DOS it runs
on, so it won't make a mess (of other DOS environments) when it does its
thing.

The thing is that I just discovered that INT 0x21, AH=0x30 returns AX=0x0005
for my XPsp3's cmd.exe console - which ofcourse clashes with (the programs
origionally targetted) DOS 5.x.

I also tried INT 0x21, AX=0x3306, which returns BX=0x3205 and as such
doesn't look as much of an improvement. (though, is 0x3205 unique to XP ?
RBIL doesn't mention it)

tl;dr:
Is there a call available with which I can distinguish between the above two
(and hopefully between other DOS and Windows console verson too) ?

And yes, I tried to search RBIL first. :-)

Regards,
Rudy Wieser

Re: Which "DOS" version is my program running on ?

<ur24jl$2g1uk$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=487&group=alt.lang.asm#487

  copy link   Newsgroups: alt.lang.asm
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nowhere@never.at (wolfgang kern)
Newsgroups: alt.lang.asm
Subject: Re: Which "DOS" version is my program running on ?
Date: Tue, 20 Feb 2024 13:06:13 +0100
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <ur24jl$2g1uk$1@dont-email.me>
References: <ur1m02$2d7rp$1@dont-email.me>
Reply-To: nowhere@never.at
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 20 Feb 2024 12:06:13 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b56bab71f1dad4ce2d1a8292b508da84";
logging-data="2623444"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19t7Egbd57pwPq8g1T2LkKfMbxyf/gOaOE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:c59QB8+hRpMNGhLz1h7XDgmqV3I=
Content-Language: en-US
In-Reply-To: <ur1m02$2d7rp$1@dont-email.me>
 by: wolfgang kern - Tue, 20 Feb 2024 12:06 UTC

On 20/02/2024 08:56, R.Wieser wrote:
> Hello all,

Hi,

> I have a rather old program which first checks which version of DOS it runs
> on, so it won't make a mess (of other DOS environments) when it does its
> thing.
>
> The thing is that I just discovered that INT 0x21, AH=0x30 returns AX=0x0005
> for my XPsp3's cmd.exe console - which ofcourse clashes with (the programs
> origionally targetted) DOS 5.x.
>
> I also tried INT 0x21, AX=0x3306, which returns BX=0x3205 and as such
> doesn't look as much of an improvement. (though, is 0x3205 unique to XP ?
> RBIL doesn't mention it)
>
> tl;dr:
> Is there a call available with which I can distinguish between the above two
> (and hopefully between other DOS and Windows console verson too) ?
>
> And yes, I tried to search RBIL first. :-)

what I remember and what still seem to work in (windoze10) DOS-box is
the DOS cmd "ver". it reports DOS 5.0 for my DOS-box. but I know it is
version 8.2 (same as the DOS that came with windoze98SE).
so something got lost during the last three decades.
__
wolfgang

Re: Which "DOS" version is my program running on ?

<ur278c$2gn32$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=488&group=alt.lang.asm#488

  copy link   Newsgroups: alt.lang.asm
Path: i2pn2.org!i2pn.org!news.samoylyk.net!newsfeed.xs3.de!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.lang.asm
Subject: Re: Which "DOS" version is my program running on ?
Date: Tue, 20 Feb 2024 13:50:59 +0100
Organization: A noiseless patient Spider
Lines: 40
Message-ID: <ur278c$2gn32$1@dont-email.me>
References: <ur1m02$2d7rp$1@dont-email.me> <ur24jl$2g1uk$1@dont-email.me>
Injection-Date: Tue, 20 Feb 2024 12:51:24 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="be9647c331319dad71906323b5f80a9f";
logging-data="2645090"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+QH2/7C28ykegay7PFbYeFZY7d0+nemfw8tUM6iLO/aQ=="
Cancel-Lock: sha1:n0XuUZ2Ryj4yZafyOEERpeDTvxg=
X-RFC2646: Format=Flowed; Response
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
 by: R.Wieser - Tue, 20 Feb 2024 12:50 UTC

Wolfgang,

>> Is there a call available with which I can distinguish between the above
>> two
>> (and hopefully between other DOS and Windows console verson too) ?
....
> what I remember and what still seem to work in (windoze10) DOS-box is the
> DOS cmd "ver". it reports DOS 5.0 for my DOS-box.

Heree XPsp3 reports "Microsoft Windows XP [Version 5.1.2600]", which is not
what either 0x30 or 0x3306 returns. :-|

>but I know it is version 8.2 (same as the DOS that came with windoze98SE).
> so something got lost during the last three decades.

About that, my "is 0x3205 unique to XP ?" remark prompted me to do some
googeling in that direction, and I stumbled over this :

https://dos.fandom.com/wiki/MS-DOS_Version_History

[quote]
Version 5.50 (Windows NTVDM) - All Windows NT 32-bit versions ship with
files from DOS 5.0
[/quote]

That means that int 21h, ah=30h returns AL=05h for both DOS 5.x as well as
the NT versions, even though they differ in certain aspects (int 21h,
AH=50h, offset 17h, CDS. The latter structure is smaller than the former
one).

Unless I hear something better about version detection I'm going to work
with the assumption that that 3205h value from int 21h, AH=3306h is
indicative for XPsp3, just as 0A05h is indicative for win96se.

Thanks for the response.

Regards,
Rudy Wieser

Re: Which "DOS" version is my program running on ?

<ur2965$2h35v$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=489&group=alt.lang.asm#489

  copy link   Newsgroups: alt.lang.asm
Path: i2pn2.org!i2pn.org!news.bbs.nz!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nowhere@never.at (wolfgang kern)
Newsgroups: alt.lang.asm
Subject: Re: Which "DOS" version is my program running on ?
Date: Tue, 20 Feb 2024 14:24:19 +0100
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <ur2965$2h35v$1@dont-email.me>
References: <ur1m02$2d7rp$1@dont-email.me> <ur24jl$2g1uk$1@dont-email.me>
<ur278c$2gn32$1@dont-email.me>
Reply-To: nowhere@never.at
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 20 Feb 2024 13:24:21 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b56bab71f1dad4ce2d1a8292b508da84";
logging-data="2657471"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+msrdDAKifawZdFYkff0tRoTQLERtps1c="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:iS6VGORMEpalaVpRCPNg31BQXd0=
Content-Language: en-US
In-Reply-To: <ur278c$2gn32$1@dont-email.me>
 by: wolfgang kern - Tue, 20 Feb 2024 13:24 UTC

On 20/02/2024 13:50, R.Wieser wrote:
....
>> what I remember and what still seem to work in (windoze10) DOS-box is the
>> DOS cmd "ver". it reports DOS 5.0 for my DOS-box.
>
> Heree XPsp3 reports "Microsoft Windows XP [Version 5.1.2600]", which is not
> what either 0x30 or 0x3306 returns. :-|
>
>> but I know it is version 8.2 (same as the DOS that came with windoze98SE).
>> so something got lost during the last three decades.
>
> About that, my "is 0x3205 unique to XP ?" remark prompted me to do some
> googeling in that direction, and I stumbled over this :
>
> https://dos.fandom.com/wiki/MS-DOS_Version_History
>
> [quote]
> Version 5.50 (Windows NTVDM) - All Windows NT 32-bit versions ship with
> files from DOS 5.0
> [/quote]
>
> That means that int 21h, ah=30h returns AL=05h for both DOS 5.x as well as
> the NT versions, even though they differ in certain aspects (int 21h,
> AH=50h, offset 17h, CDS. The latter structure is smaller than the former
> one).
>
> Unless I hear something better about version detection I'm going to work
> with the assumption that that 3205h value from int 21h, AH=3306h is
> indicative for XPsp3, just as 0A05h is indicative for win96se.
>
> Thanks for the response.

I used XP for many years but rare used DOS, it was version 8.2 the
follower of 6.22 (both are bloated and needed HIMEM,sys & EMM386).
Version 6.00 was the last that fits old games memory size demands.

sorry can't help with details.
__
wolfgang

Re: Which "DOS" version is my program running on ?

<18otiy0w84dsn$.zls1d3cux2rf$.dlg@40tude.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=490&group=alt.lang.asm#490

  copy link   Newsgroups: alt.lang.asm
Path: i2pn2.org!i2pn.org!news.chmurka.net!usenet.goja.nl.eu.org!paganini.bofh.team!not-for-mail
From: jj4public@outlook.com (JJ)
Newsgroups: alt.lang.asm
Subject: Re: Which "DOS" version is my program running on ?
Date: Wed, 21 Feb 2024 06:55:19 +0700
Organization: To protect and to server
Message-ID: <18otiy0w84dsn$.zls1d3cux2rf$.dlg@40tude.net>
References: <ur1m02$2d7rp$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: paganini.bofh.team; logging-data="2053709"; posting-host="z6CdWPi1SKex7i7ZAl344A.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
User-Agent: 40tude_Dialog/2.0.15.84
Cancel-Lock: sha256:ExpPivYOsCMP6MUA2LHrUzOOGEtCPYWTXJ+Aqe5YaR4=
X-Face: \*\`0(1j~VfYC>ebz[&O.]=,Nm\oRM{of,liRO#7Eqi4|!]!(Gs=Akgh{J)605>C9Air?pa d{sSZ09u+A7f<^paR"/NH_#<mE1S"hde\c6PZLUB[t/s5-+Iu5DSc?P0+4%,Hl
X-Bitcoin: 1LcqwCQBQmhcWfWsVEAeyLchkAY8ZfuMnS
X-Notice: Filtered by postfilter v. 0.9.3
 by: JJ - Tue, 20 Feb 2024 23:55 UTC

On Tue, 20 Feb 2024 08:56:35 +0100, R.Wieser wrote:
> Hello all,
>
> I have a rather old program which first checks which version of DOS it runs
> on, so it won't make a mess (of other DOS environments) when it does its
> thing.
>
> The thing is that I just discovered that INT 0x21, AH=0x30 returns AX=0x0005
> for my XPsp3's cmd.exe console - which ofcourse clashes with (the programs
> origionally targetted) DOS 5.x.
>
> I also tried INT 0x21, AX=0x3306, which returns BX=0x3205 and as such
> doesn't look as much of an improvement. (though, is 0x3205 unique to XP ?
> RBIL doesn't mention it)
>
> tl;dr:
> Is there a call available with which I can distinguish between the above two
> (and hopefully between other DOS and Windows console verson too) ?
>
> And yes, I tried to search RBIL first. :-)
>
> Regards,
> Rudy Wieser

MS-DOS true version number of 5.50 is unique to Windows NT's DOS VM, since
Microsoft doesn't release MS-DOS v5.50 commercially or to OEMs.

It applies to (at least) Windows NT 3.51 up to Windows 8.1. Windows NT 3.1
and Windows 10+ are very likely the same.

Int 21h AX=3306 return the same set of version/ID related values.

In pure MS-DOS 5.00a, Int 21h AX=3306 returns BX=0005. All other returned
version/ID related values are identical to Windows NT's DOS VM.

Re: Which "DOS" version is my program running on ?

<ur4483$2vnb1$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=491&group=alt.lang.asm#491

  copy link   Newsgroups: alt.lang.asm
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.lang.asm
Subject: Re: Which "DOS" version is my program running on ?
Date: Wed, 21 Feb 2024 07:10:47 +0100
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <ur4483$2vnb1$1@dont-email.me>
References: <ur1m02$2d7rp$1@dont-email.me> <18otiy0w84dsn$.zls1d3cux2rf$.dlg@40tude.net>
Injection-Date: Wed, 21 Feb 2024 06:12:19 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="cc15d35218a7374a45662de4f33332c6";
logging-data="3136865"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/vqCjcXG4rD4aEyvb5ckIfT1/xO0U+G2B5AZLISCSW5Q=="
Cancel-Lock: sha1:oKez2RHmcoHNZ3zYrqa6ZrJRNhs=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-MSMail-Priority: Normal
X-RFC2646: Format=Flowed; Original
 by: R.Wieser - Wed, 21 Feb 2024 06:10 UTC

JJ,

> MS-DOS true version number of 5.50 is unique to Windows NT's DOS VM,

While googeling I saw the same thing mentioned too. Odd to me, as they went
upto DOS 7.x with Win98. It's what threw me off (I expected a higher
version than Win98).

> In pure MS-DOS 5.00a, Int 21h AX=3306 returns BX=0005.

I would have liked to be able to test it, but as I've not got an DOS v5.x
USB stick ready anymore... :-) Thanks for the confirmation.

Regards,
Rudy Wieser

Re: Which "DOS" version is my program running on ?

<ur4h0e$31tfm$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=492&group=alt.lang.asm#492

  copy link   Newsgroups: alt.lang.asm
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nowhere@never.at (wolfgang kern)
Newsgroups: alt.lang.asm
Subject: Re: Which "DOS" version is my program running on ?
Date: Wed, 21 Feb 2024 10:50:05 +0100
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <ur4h0e$31tfm$1@dont-email.me>
References: <ur1m02$2d7rp$1@dont-email.me>
Reply-To: nowhere@never.at
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 21 Feb 2024 09:50:06 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0d7d16d65b6964046f926472cd0e3f87";
logging-data="3208694"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18MGMZUS5/+vL7sASmgndlys7AmdRjevj4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:y99HNA+50cdldxjdiM5R8hzF/Gw=
Content-Language: en-US
In-Reply-To: <ur1m02$2d7rp$1@dont-email.me>
 by: wolfgang kern - Wed, 21 Feb 2024 09:50 UTC

On 20/02/2024 08:56, R.Wieser asked about:

I just tried to remember where I found 6.22 and 8.2 versions reported.
now I checked properties on (DOS6.00) MSDOS.SYS and IO.SYS in windoze:
both show after the last modified date a time that tells 06:00:00.
I don't have other old DOS anymore (can't read my DOS 1.0 on 5 1/4)
__
wolfgang

Re: Which "DOS" version is my program running on ?

<ur4jdf$32n0b$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=493&group=alt.lang.asm#493

  copy link   Newsgroups: alt.lang.asm
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: alt.lang.asm
Subject: Re: Which "DOS" version is my program running on ?
Date: Wed, 21 Feb 2024 11:30:53 +0100
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <ur4jdf$32n0b$1@dont-email.me>
References: <ur1m02$2d7rp$1@dont-email.me> <ur4h0e$31tfm$1@dont-email.me>
Injection-Date: Wed, 21 Feb 2024 10:31:11 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="cc15d35218a7374a45662de4f33332c6";
logging-data="3234827"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/nmCSXokgBZC7GN88tYvd/k05EQciAvIvP6ItU/pYAtw=="
Cancel-Lock: sha1:BEp3NzQljKTsxZxqgSL/AzXrNOA=
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-RFC2646: Format=Flowed; Response
 by: R.Wieser - Wed, 21 Feb 2024 10:30 UTC

Wolfgang,

> I just tried to remember where I found 6.22 and 8.2 versions reported.

I just remembered I have a DOS 6.22 USB stick, and it returns 0x1606 for
both checks - which quite nicely matches its DOS version. :-)

I thought that Win98 was build ontop of a DOS 7.x version, but thats not
what the version checks return (0x0A05).

> now I checked properties on (DOS6.00) MSDOS.SYS and IO.SYS in windoze:
> both show after the last modified date a time that tells 06:00:00.

They did the same with DOS 5.x and DOS 6.22. At the time I wondered if
that was part of some "security" / authenticity check.

> I don't have other old DOS anymore (can't read my DOS 1.0 on 5 1/4)

Over time I've gathered disk-images of a number of DOS versions (from
different OEMs). Never saw a v1.0. I did come across a win 1.01 set of
disk images though.

Regards,
Rudy Wieser

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor