can any one help to to correct the problem in this code it is simple but i can't run it
this is the code:
#include <hidef.h> /* common defines and macros */
#include "derivative.h" /* derivative-specific definitions */
#pragma LINK_INFO DERIVATIVE "mc9s12dg256"
char Addit( char, char);
void main(void) {
char x,y,z;
x=5;
y=6;
z= Addit (x,y);
EnableInterrupts;
for(; ; ) {}
char Addit (char a, char b); {
return (a+b);
}
And im using CodeWarrior for S12(X) Microcontrollers V5.0
Message Edited by A.Al-Shaybani on 2009-10-16 01:44 PM
Message Edited by A.Al-Shaybani on 2009-10-16 01:45 PM