Mail Archives: djgpp/1999/04/13/00:45:41
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
- Raw text -