The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: shaldan on October 26, 2005, 09:44:41 AM

Title: EVEN or ALIGN
Post by: shaldan on October 26, 2005, 09:44:41 AM
Simple question ... what is the difference between ALIGN and EVEN a what and where is better use of them ?
thanx
Title: Re: EVEN or ALIGN
Post by: hutch-- on October 26, 2005, 09:51:05 AM
align is more flexible. EVEN is just ALIGN 2.

If you set the processor model to .486 or higher, you can align up to 16 bytes which is useful at times.
Title: Re: EVEN or ALIGN
Post by: shaldan on October 26, 2005, 10:02:59 AM
thanks ...  just one question .... when I use align 4 in the beginnig of all sections, can I count that all data will be aligned or do I need to use ALIGN in the begining of every procedure, funcion etc. ?

EVEN is I saw used only once in the code
Title: Re: EVEN or ALIGN
Post by: hutch-- on October 26, 2005, 01:48:26 PM
ALIGN only aligns the following piece of code or data so you normally use it anywhere you need data or code aligned.