INSTRUCTIONS (02/15/2005)
------------
This file describes the compiler library dtr patch.

When exiting from the standard executable program, the dtr is lowered.

This patch prevents this:

FILES:
------
Patch the runtime libraries which are linked in when compiling with /O,
and the runtime executables which are used when /O is not used:

  For QB 4.5 patch the files:

    BCOM45.LIB  standalone library
    BRUN45.EXE  runtime module

  For BASCOM 7.0/7.10 patch the files:

    BCL71xyz.LIB  standalone libraries
    BRT71xyz.EXE  runtime modules, where:

      x = A - alternate mathpack, E - 80x86/emulator mathpack.
          (E is default unless you compile in BC with /FPa)
      y = N - near strings, F - far strings.
          (N is default unless you compile in BC with /FS)
      z = R - real mode, P - protected mode.
          (R is default for DOS, P is used in OS/2)

  For VB DOS 1.0 patch the files:

    VBDCL10x.LIB  stanalone libraries
    VBDRT10x.EXE  runtime modules, where:

      x=A - alternate math package, E - 80x87 or emulator math package.

PATCH
-----
Look for the string:

"B0 00 E3 01 40 83 C2 04 EE"

with any hex editor.

In assembly code:

B0 00    MOV  AL,00
E3 01    JCXZ nnnn
40       INC  AX
83 C2 04 ADD  DX,04
EE       OUT  DX,AL

Change "MOV AL,00" to "MOV AL,01":

Edit "B0 00" to "B0 01".

Change "INC AX" to "NOP":

Edit "40" to "90".

-end-
