Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: yjtseng , djgpp AT delorie DOT com Date: Thu, 8 Apr 1999 17:17:41 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Help needed in getting CR0 under DOS In-reply-to: X-mailer: Pegasus Mail for Windows (v2.54) Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk yjtseng wrote: > I wrote inline assembly code to access the control register CR0 and > compiled it > under djgpp. It ran O.k. in window DOS but gave me general protection fault > under pure DOS environment. 1) Isn't it a privileged instruction? 2) Are you sure it succed under Windows, or is just that it didn't complain? 3) Did you tried with CWSDPR0 under DOS or with other DPMI host? I guess you used the normal CWSDPMI and (1) is true so then the crash is logic. SET ------------------------------------ 0 -------------------------------- Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Salvador Eduardo Tropea (SET). (Electronics Engineer) Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org ICQ: 2951574 Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA TE: +(5411) 4759 0013