#include  <machine.h> 
#include  <_h_c_lib.h> 
//#include   <stddef.h>           // Remove the comment when you use errno 
//#include   <stdlib.h>           // Remove the comment when you use rand() 
#include  "typedefine.h"          // Define Types 
#include  "stacksct.h"            // Stack Sizes (Interrupt and User) 
  
#ifdef __cplusplus                // For Use Reset vector 
extern "C" {
#endif 
void PowerON_Reset_PC(void); 
void main(void); 
#ifdef __cplusplus 
} 
#endif 
  
#ifdef __cplusplus                // For Use SIM I/O 
extern "C" {
#endif 
extern void _INIT_IOLIB(void); 
extern void _CLOSEALL(void); 
#ifdef __cplusplus 
} 
#endif 
  
#define PSW_init       0x00010000      // PSW bit pattern 
#define FPSW_DPSW_init 0x00000000      // FPSW/DPSW bit base pattern 
  
//extern void srand(_UINT);       // Remove the comment when you use rand() 
//extern _SBYTE *_s1ptr;          // Remove the comment when you use strtok() 
  
//#ifdef __cplusplus              // Use Hardware Setup 
//extern "C" {
//#endif 
//extern void HardwareSetup(void); 
//#ifdef __cplusplus 
//} 
//#endif 
  
//#ifdef __cplusplus              // Remove the comment when you use global class object 
//extern "C" {                    // Sections C$INIT and C$END will be generated
//#endif 
//extern void _CALL_INIT(void); 
//extern void _CALL_END(void); 
//#ifdef __cplusplus 
//} 
//#endif 
#pragma section ResetPRG          // output PowerON_Reset_PC to PResetPRG section 
  
#pragma entry PowerON_Reset_PC 
  
void PowerON_Reset_PC(void) 
{
#if (__RX_ISA_VERSION__ >= 2) || defined(__RXV2) 
    set_extb(__sectop("EXCEPTVECT")); // Remove the comment when you want to set an address
                                    // into the Exception Vector Table Register of RXv2 or later 
 |