GithubHelp home page GithubHelp logo

Comments (3)

joncampbell123 avatar joncampbell123 commented on June 12, 2024

A-ha:

How to detect an Intel 386 vs a NexGen 5x86

So if you set ZF=1 from XOR DX,DX, then execute a divide instruction that will have a nonzero remainder like 0x5555 / 2, the CPU is an Intel CPU if ZF changes, else the NexGen 5x86 does not change ZF.

from dosbox-x.

joncampbell123 avatar joncampbell123 commented on June 12, 2024

OK. Most of the programs now detect cputype=386 as a 80386. The only stubborn program that still detects the CPU as a NexGen 5x86 is AGSI.

from dosbox-x.

joncampbell123 avatar joncampbell123 commented on June 12, 2024

Fixed. It took some additional work on the DIV instruction emulation. Now most programs detect cputype=386 as an Intel 386DX, except for one that sees the CPU as a Chips & Tech 38600 (Super386), and Windows 95 OSR2 which sees the CPU as a "CyrixInstead" (argh).

I have no idea why Windows 95 OSR2 would misdetect cputype=386 as a Cyrix, but I do have a good idea why the other program misdetects it as a C&T 38600: http://computer-programming-forum.com/46-asm/c4c6d67250609049.htm

The common test seems to be to execute POPAD and a memory EA reference repeatedly to purposely trigger the POPAD bug, then assume that if the bug doesn't trigger the CPU is not an Intel 386. Well, DOSBox doesn't emulate the POPAD bug, so... it thinks we're a C&T 38600 instead of an Intel 386DX.

from dosbox-x.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.