#include <reg51f.h>               /* special function register declarations   */
                                  /* for the intended 8051FX derivative       */

unsigned char data_variable;        /* your data variable */
unsigned int  data_variable1;       /* your 2nd data variable */

/**********************************/
/* Your Interrupt Service Routine */
/**********************************/
void timer0int (void)  interrupt 1  using 1  {
  data_variable1++;              
}

   

/*********************/
/* Your main program */
/*********************/
void main (void)  {
  /* the setting of the STACK area is performed in the file STARTUP.A51,
     so you need not to worry about this here */

  while (1) {                     /* An embedded program does not stop and    */
    data_variable += 0x0D;        /* never returns.  We've used an endless    */
    data_variable1++;             /* loop.  You may wish to put in your own   */
  }                               /* code were we've printed the dots (...).  */
}                    
