Simple file manager written in C (Developers)
> 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:
- Simple file manager written in C - GizMo79, 13.09.2020, 15:25 (Developers)
- Simple file manager written in C - glennmcc, 15.09.2020, 03:20
- Simple file manager written in C - GizMo79, 15.09.2020, 13:55
- Simple file manager written in C - RayeR, 23.09.2020, 04:15
- Simple file manager written in C - tkchia, 27.09.2020, 18:28
- Simple file manager written in C - RayeR, 30.09.2020, 23:23
- Simple file manager written in C - GizMo79, 06.12.2020, 17:33
- Simple file manager written in C - GizMo79, 29.09.2020, 22:15
- Simple file manager written in C - RayeR, 30.09.2020, 02:04
- Simple file manager written in C - GizMo79, 30.09.2020, 12:41
- Simple file manager written in C - Rugxulo, 01.10.2020, 01:10
- Simple file manager written in C - GizMo79, 01.10.2020, 10:20
- Simple file manager written in C - ecm, 06.10.2020, 23:18
- Simple file manager written in C - Rugxulo, 09.10.2020, 07:37
- Simple file manager written in C - ecm, 09.10.2020, 18:52
- Simple file manager written in C - Rugxulo, 09.10.2020, 07:37
- Simple file manager written in C - Rugxulo, 01.10.2020, 01:10
- Simple file manager written in C - GizMo79, 30.09.2020, 12:41
- Simple file manager written in C - RayeR, 30.09.2020, 02:04
- Simple file manager written in C - tkchia, 27.09.2020, 18:28
- Simple file manager written in C - RayeR, 23.09.2020, 04:15
- Simple file manager written in C - GizMo79, 15.09.2020, 13:55
- Simple file manager written in C - glennmcc, 15.09.2020, 03:20