News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Assembler Directives

Started by the_nemesis, June 19, 2005, 01:34:04 PM

Previous topic - Next topic

the_nemesis

I was wondering if masm has assembler directives, what I mean my this is...

I want to know if i can tell the assmbler to include certain parts of code deoending on a variable passed to the linker.

In the Delphi compiler I could use
{IFDEFname}
  // perform this if found
{IDEND}

I know a c++ equivalent exists, but i'm after one for masm32 if it exists, thanks.

hutch--

The ones you are looking for are these,


IFDEF var
  do this
ENDIF

or

IFNDEF var
  do this
ENDIF


have a look in MASM32 help in the full listing under [ELSE]......

Note that if the "var" is an equate created with a line like the following,


var equ <value>


The value needs to be greater than zero.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

the_nemesis

thanks a heap for that, is there a way to set var from the ml.exe command line ?

chep