Date: Thu, 5 Aug 1999 04:11:51 +0200 (METDST) Message-Id: <199908050211.EAA28717@tyr.diku.dk> From: Morten Welinder To: djgpp-workers AT delorie DOT com CC: eliz AT is DOT elta DOT co DOT il In-reply-to: <37A8643F.CCFFBD9A@softhome.net> (message from Laurynas Biveinis on Wed, 04 Aug 1999 18:03:11 +0200) Subject: Re: CPU ID program, second version References: <37A8643F DOT CCFFBD9A AT softhome DOT net> Reply-To: djgpp-workers AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Just, FYI, this algorithm (setting AC flag, then ...) will not work in all environments. In particular, you have no guarantee that the AC flag will be turned on if the underlying DPMI does not feel like it. The manual page ought to say this. I don't think a bulletproof algorithm exists outside ring 0/real mode. Also, your switch statement is incomplete -- add a default case and call it "ix86" or something like that. Morten