bas7qck.hlp (Table of Contents; Topic list)
Relinking MASM code
  10 Questions                                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
After recompiling my old programs with the BASIC Compiler, my assembly
language subprograms hang when called. They still work in the QBX
environment and when I put them in a .QLB file. Why?
 
If the assembly language subprogram was working fine previously, the
most likely problem is an END (label) assembly directive in the MASM file.
Such an END label indicates that the assembly module is the main module.
This usually causes the program to hang due to improper initialization.
 
To eliminate the problem, remove the label and reassemble. If the label
cannot be removed from the END directive, do not use this program with BASIC.
 
Here is an example of the END (label) directive:
 
     code     segment  byte    public  'code'
     .
     .
     temp     proc     far
     .
     .
     temp     endp
 
     code     ends
 
              end      temp     ;The "temp" label should be removed