GNU Info

Info Node: (nasm.info)Section 2.1.17

(nasm.info)Section 2.1.17


Next: Section 2.1.18 Prev: Section 2.1.16 Up: Section 2.1
Enter node , (file) or (file)node

2.1.17. The `-t' option: Enable TASM Compatibility Mode
-------------------------------------------------------

   NASM includes a limited form of compatibility with Borland's `TASM'.
When NASM's `-t' option is used, the following changes are made:

   * local labels may be prefixed with `@@' instead of `.'

   * TASM-style response files beginning with `@' may be specified on
     the command line. This is different from the `-@resp' style that
     NASM natively supports.

   * size override is supported within brackets. In TASM compatible
     mode, a size override inside square brackets changes the size of
     the operand, and not the address type of the operand as it does in
     NASM syntax. E.g.  `mov eax,[DWORD val]' is valid syntax in TASM
     compatibility mode. Note that you lose the ability to override the
     default address type for the instruction.

   * `%arg' preprocessor directive is supported which is similar to
     TASM's `ARG' directive.

   * `%local' preprocessor directive

   * `%stacksize' preprocessor directive

   * unprefixed forms of some directives supported (`arg', `elif',
     `else', `endif', `if', `ifdef', `ifdifi', `ifndef', `include',
     `local')

   * more...

   For more information on the directives, see the section on TASM
Compatiblity preprocessor directives in *Note Section 4.9::.


automatically generated by info2www version 1.2.2.9