Hi Guys!
I'm a novice but would like to know....


"aligned on a word boundary." what does it mean ?
Because I'm not sure that what I'm thinking about it is right.......

Thank you for any help !
Posted on 2003-08-23 10:06:35 by ABitLazy
Means the address is a multiple of 2. (Word = 2)
Posted on 2003-08-23 10:20:32 by roticv
Hi ABitLazy

The CPU works faster on a data that's stored @ even numberd memory address, if a variable ?that you use often happend to start @ an even address, then you program will be slow.



mybyte byte ? ;lets say the adress here is 00400400
ALIGEN 4
myDword DD ? ; then this one will start @ 00400404

If we didn't use ALIGEN 4 then myDword would have been in address 00400401.

I know some one else will explane this mush better then I.
Peace
Posted on 2003-08-23 10:21:13 by mistronr1

Hi ABitLazy

The CPU works faster on a data that's stored @ even numberd memory address, if a variable ?that you use often happend to start @ an even address, then you program will be slow.



mybyte byte ? ;lets say the adress here is 00400400
ALIGEN 4
myDword DD ? ; then this one will start @ 00400404

If we didn't use ALIGEN 4 then myDword would have been in address 00400401.

I know some one else will explane this mush better then I.
Peace



Hi !
Thank you !
Ok Now I understand ...thank you very much ..and your explanation is very clear ! ;)
Posted on 2003-08-23 17:23:58 by ABitLazy