Detecting AT,PS/2 or PC...

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Peter_Vigren

Detecting AT,PS/2 or PC...

Post by Peter_Vigren »

Can I detect if the computer is AT, PS/2 or if it is a PC without reading one byte at F000:FFFE (or using Int 15,C0h)? Because the AT,PS/2 disabled NMI in one way and PC in another and it's quite good to know which one to use. :)

Also, it would be nice to be able to detect if the computer is a XT. Plus some information that explain some differences between and general information about these computer types...
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Detecting AT,PS/2 or PC...

Post by Pype.Clicker »

why exactly do you need to disable NMI ? if this is for the sake of pmode switching, then you can safely assume your computer is at least an AT (never saw an PC or XT with some processor higher than 80286 :)
Peter_Vigren

Re:Detecting AT,PS/2 or PC...

Post by Peter_Vigren »

Pype.Clicker wrote: why exactly do you need to disable NMI ? if this is for the sake of pmode switching, then you can safely assume your computer is at least an AT (never saw an PC or XT with some processor higher than 80286 :)
Yes it is for pmode switching... Oki then I will use the CMOS ports to disable/enable NMI...
Post Reply