News:

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

IF and .IF

Started by Robert Collins, January 10, 2005, 04:35:32 AM

Previous topic - Next topic

Robert Collins

What is the differenbce between IF and .IF?

I read where both are MASM Directives but I see the .IF used in control flow of the program and that tells me
it is executed at run time but I thought Directives were executed at compile time and were only
interpeted by the assembler or am I not reading the sourse code correctly?

donkey

IF is a compiler directive used for conditional compilation of the source, .IF is an intrinsic macro that is used for a conditional branch in a program,it is normally replaced with a cmp/jcc type instruction sequence.
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable

Robert Collins