Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Simple file manager written in C (Developers)

posted by Rugxulo Homepage, Usono, 09.10.2020, 07:37

> The NEC V20 supports 186 level instructions, though it needs
> special
> detection for this model as opposed to the typical 186 check. The
> typical check is shift count masking with 31, 8086/8088 and the NECs do not
> mask large counts in cl, the Intel 186/188 and up do mask the counts.

Jim Leonard (Trixter) once sent me some detection code for old cpus, but I can't remember where it is. I'll have to look for it. EDIT: Apparently here.

Anyways, HelpPC also had some old cpu detection info.

There were various old (buggy?) DOS detection tools, too, sometimes with sources. One was by Eric Auer (CPULEVEL). I remember nagging him to support 186 and 486 separately (instead of mistreating them as glorified 8086 or 386), pointing to some other obscure detection code that I can't remember at the moment.

Honestly, that kind of detection is somewhat tricky. I recommend making it possible to disable checking manually beforehand and/or override it manually via cmdline switch. (Testing is rarely exhaustive, and it's too easy to make mistakes.)

 

Complete thread:

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