News:

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

Eqators

Started by anuradha, April 10, 2007, 05:01:36 PM

Previous topic - Next topic

anuradha

hi people
I have 2 questions

1.What is the different between "EQU" and "="?
2.what is "IDEAL" mode?

Can any one help me please.
thanks :lol

Merrick

just for giggles, write a small program using all "=" and another identical program replacing all "=" with "EQU". Compile and check for differences in the results.

zooba

EQU defines a constant while = assigns a value to a compile-time variable.

IDEAL mode is an option in TASM which changes the behaviour away from MASM compatible.

Cheers,

Zooba :U

Tedd

You can treat them as pretty much exactly the same, but for one difference - EQU can't be re-assigned a value.

So the following is fine:
blah = 10
;there's probably be some code between the two
blah = 20


..while this will cause a compiler warning:

blah EQU 10
;there's probably be some code between the two
blah EQU 20

No snowflake in an avalanche feels responsible.