Mail Archives: djgpp/1999/04/08/21:14:50
On 8 Apr 99 at 15:14, yjtseng wrote:
> I don't know that the inline code is in protected mode or real mode when it
> is executed?
All your code is executed in protected mode, unless you load it
into lower memory and use special DPMI functions to execute it.
> As to (2), maybe you are right but is there anyway to verify
> it? As to (3), yes, I use normal cwsdpmi.exe. Any document that I can access
> to see the difference between CWSDPR0 under DOS and CWSDPMI and how can I
> invoke it? Thanks.
See CWSDPMI.DOC. CWSDPR0 runs your code in ring zero. You can
either stubedit your binary, or run CWSDPR0 before your program
(which will preload it for just one run of the program, after
which it will unload itself), or use the command line to load
it permanently. In either of the latter two situations the
djgpp stub sees that a DPMI host is already present and doesn't
try to load CWSDPMI.
--
George
- Raw text -