AnsweredAssumed Answered

Can't simulate this on code warrior help plz!!!!!

Question asked by Ali Al-Shaybani on Oct 16, 2009
Latest reply on Oct 16, 2009 by Ali Al-Shaybani
can any one help to to correct the problem in this code it is simple but i can't run it:smileysad: 
 
 
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

Outcomes