Take the address you get from end and make sure it is phrase alignedmove.l #end,d0 add.l #8, d0 and.l #$fffffff8, d0
Will leave you with a phrase aligned address in d0
or better (if the assembler can handle it):
move.l #( end+7 ) & ~7,d0
Note: Don't waste cycles on-line you can invest off-line.
- ggn likes this