22.02.2014 Views

with DOS/4GW? - Open Watcom

with DOS/4GW? - Open Watcom

with DOS/4GW? - Open Watcom

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table of Contents<br />

5.6 How Can I Use the Mouse Interrupt (0x33) <strong>with</strong> <strong>DOS</strong>/<strong>4GW</strong>? .................... 33<br />

5.7 How Do I Simulate a Real-Mode Interrupt <strong>with</strong> <strong>DOS</strong>/<strong>4GW</strong>? ...................... 35<br />

5.8 How do you install a bi-modal interrupt handler using <strong>DOS</strong>/<strong>4GW</strong>? ........... 37<br />

The <strong>DOS</strong>/<strong>4GW</strong> <strong>DOS</strong> Extender .................................................................................................. 43<br />

6 The Tenberry Software <strong>DOS</strong>/<strong>4GW</strong> <strong>DOS</strong> Extender .................................................... 45<br />

7 Linear Executables ...................................................................................................... 47<br />

7.1 The Linear Executable Format ..................................................................... 47<br />

7.1.1 The Stub Program .......................................................................... 47<br />

7.2 Memory Use ................................................................................................. 49<br />

8 Configuring <strong>DOS</strong>/<strong>4GW</strong> .............................................................................................. 51<br />

8.1 The <strong>DOS</strong>4G Environment Variable .............................................................. 51<br />

8.2 Changing the Switch Mode Setting .............................................................. 52<br />

8.3 Fine Control of Memory Usage .................................................................... 54<br />

8.3.1 Specifying a Range of Extended Memory ..................................... 54<br />

8.3.2 Using Extra Memory ...................................................................... 56<br />

8.4 Setting Runtime Options .............................................................................. 56<br />

8.5 Controlling Address Line 20 ........................................................................ 58<br />

9 VMM ........................................................................................................................... 59<br />

9.1 VMM Default Parameters ............................................................................. 59<br />

9.2 Changing the Defaults .................................................................................. 60<br />

9.2.1 The .VMC File ............................................................................... 60<br />

10 Interrupt 21H Functions ............................................................................................ 61<br />

10.1 Functions 25H and 35H: Interrupt Handling in Protected Mode ............... 65<br />

10.1.1 32-Bit Gates ................................................................................. 65<br />

10.1.2 Chaining 16-bit and 32-bit Handlers ............................................ 66<br />

10.1.3 Getting the Address of the Interrupt Handler ............................... 66<br />

11 Interrupt 31H DPMI Functions ................................................................................. 67<br />

11.1 Using Interrupt 31H Function Calls ........................................................... 67<br />

11.2 Int31H Function Calls ................................................................................ 68<br />

11.2.1 Local Descriptor Table (LDT) Management Services ................. 69<br />

11.2.2 <strong>DOS</strong> Memory Management Services ........................................... 75<br />

11.2.3 Interrupt Services ......................................................................... 76<br />

11.2.4 Translation Services ..................................................................... 79<br />

11.2.5 DPMI Version .............................................................................. 88<br />

vi

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!