Hi,
if you have already read compiler manual (part of the CodeWarrior installation directory) you can find info that alignment of functions in C code project is possible only via PRM file where you can create special memory space in flash (aligned) and place function there. You can also find info about arguments passing which will lead you to following solution.
static asm void DelayAligned (unsigned int Count) // D2 is used to store Count as argument before call of the function
// so it is directly used in the loop
{
loop1: dbne D2,loop1
}
You can then step the function call through assembler instructions steps and test to be sure it is working.
Best regards,
Ladislav