Hi,
Here are some various example codes for S12XE line of MCUs.
S12X Examples Pack
When you open a project in CodeWarrior IDE and in the project open a source code file such as main.c, then mouse right click will show you a menu and there is option disassemble. This will allow you to see all C code in assembler language, so you can see how some functions are in C and assembler.
The particular assembler code you post is in C:
//*********************************
void Delay (void)
{
unsigned int i;
for(i=0; i<10000; i++)
{
asm nop;
asm nop;
asm nop;
}
}
//*********************************
void main (void)
{
PORTB = 0xFF;
Delay();
PORTB = 0x00;
Delay();
}
//********************************
On the web you can find many C language tutorials and documents for learning programming language. But, still if you know assembler well, you can use it.
Regards,
iggi