Hello Beenu,
Usually assembly code can be included in a C file by using either an asm(); statement or an assembler macro. The asm(); statement allows the injection of maybe one or two assembler statements and the assembler macro allows for a whole assembler function or collection of statements.
Check the CodeWarrior documentation to see the exact syntax required.
Thanks,
Ian
Hi Winner,
You can use __asm keyword. please try search this keyword in hcs08 compiler manual, you can see the example. I listed below for you.
Listing: Examples of the __asm Keyword
__asm { nop
nop ; comment
}
asm ("nop; nop");
__asm("nop\n nop");
__asm "nop";
__asm nop;
#asm
nop
nop
#endasm
XWP