Mail Archives: djgpp/1999/04/13/00:45:41

Message-ID: <>
From: yjtseng <yjtseng AT micron DOT com>
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)
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. 


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?

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?


- Raw text -

  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019