VERSION          Set TASM assembly mode                             Directive

In code:
VERSION version_ID

Command-line option:
/uversion_ID

The VERSION directive (introduced in TASM v3.0) lets you specify which
version of Turbo Assembler or MASM you're writing particular modules
for. This is helpful for upward and downward compatibility of various
versions of TASM and MASM. The VERSION directive places Turbo
Assembler into the operating mode for the specified version.


You can specify the following legal version IDs:

M400 MASM 4.0
M500 MASM 5.0
M510 MASM 5.1
M520 MASM 5.2 (Quick ASM)
T100 Turbo Assembler 1.0
T101 Turbo Assembler 1.01
T200 Turbo Assembler 2.0
T250 Turbo Assembler 2.5
T300 Turbo Assembler 3.0
T310 Turbo Assembler 3.1
T320 Turbo Assembler 3.2
T400 Turbo Assembler 4.0

As an example, if you wanted to assemble a program written for MASM
5.1, you could leave the source for the program intact and use the
switch /uM510.


Note: 1. The VERSION directive always selects MASM mode by
default, because that is the starting mode of operation
for both MASM and Turbo Assembler.
2. The VERSION directive limits the high-priority keywords
available to those in the specified compiler and version.
As a result, some features that were added to later
versions are unavailable to you.
3. From Ideal mode, the VERSION directive is unavailable
if you select a version prior to T300. To use the
VERSION directive in this case, you must switch to MASM
mode first.
4. No attempt is made to limit access to low priority key-
words since these will not affect compatibility.


Previous versions of Turbo Assembler controlled MASM compatibility
with directives such as MASM51, NOMASM51, QUIRKS. The VERSION
directive supersedes these older directives. Refer to the complete
list of keywords available with each prior version of Turbo Assembler.