How do I use DPMI from Turbo C

  • 13 years ago

    I know that this is probably a blast from the past but ...

     I have the need to develop a DOS based application that need to be able to access certain physical memory addresses.  I want to do my development with Turbo C (V3.1 is the last version that I purchased).  I have found all kinds of examples on the web of how to query DPMI and go to into protected mode but all the code is assembly language and I would like to write as much as possible in C.  Has anyone done this?  Can anyone give me some help or pointers? I have tried moving the assembly code into C _asm statements with minimal luck.  I can detect DPMI support, but ever time I try to use to invoke the mode switch vector I end up going off into oblivion.

     Thanks,

    Lowell aka Cyberclops.

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Java is to JavaScript what Car is to Carpet.” - Chris Heilmann