Message-ID: From: yjtseng To: djgpp AT delorie DOT com, salvado AT inti DOT gov DOT ar, set-soft AT usa DOT net, nate AT cartsys DOT com Cc: yjtseng AT micron DOT com Subject: cwsdpr0.exe Date: Mon, 12 Apr 1999 22:43:51 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain Reply-To: djgpp AT delorie DOT com I wrote inline assembly to access CR0. There was general protection fault at run time. After suggestions given by Salvador Eduardo Tropea and Nate Eldredge, I tried cwsdpr0.exe and it worked. I was able to access CR0. Questions: First: Acording to cwsdpmi.doc, cwsdpr0.exe runs with virtual memory disabled. But, the value of CR0 that I read is 0x80000011 which means the paging mechanism is on. Any idea anybody? Second: How can I pick cwsdpr0.exe as the DPMI host at compilation instead of using stubedit my.exe dpmi=cwsdpr0.exe after the executable is generated? Thanks