Microsoft KB Archive/27934

= If CHAINing, Assembler in Extended Run Time Can't Use DGROUP =

Article ID: 27934

Article Last Modified on 11/21/2006



This article was previously published under Q27934



SUMMARY
The following is an addition to page 19 of the version 6.0 or 6.0b &quot;Microsoft Basic Compiler User's Guide&quot; in the &quot;Programming Considerations for Extended Run-Time Modules&quot; section:

For mixed-language programs that use the CHAIN command, you should make sure that any (assembler) code built into an extended run-time module does not contain any references to DGROUP. (The CHAIN command causes DGROUP to move, but does not update references to DGROUP.) This rule applies only to mixed-language programs; Basic routines never refer to DGROUP, so you can ignore this caution for programs written entirely in Basic.

This information came from the README.DOC file for Basic 6.0 and 6.0b.

To avoid this limitation, you can use the value of SS in your assembler routine instead of DGROUP, because Basic always assumes that SS coincides with DGROUP.



MORE INFORMATION
The Basic run-time module can be extended with the BUILDRTM.EXE utility. A Basic program must be compiled WITHOUT the /O (standalone) option to use the run-time or extended run-time module.

The above information is correctly mentioned on page 668 under &quot;DGROUP References&quot; in the &quot;Microsoft Basic 7.0: Programmer's Guide&quot; for Microsoft Basic PDS versions 7.0 and 7.1.

Additional query words: BasicCom 6.00 6.00b 7.00 7.10

Keywords: KB27934

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.