www.pudn.com > keilC51.zip > C_ROOT.C, change:1996-09-13,size:668b


/*------------------------------------------------------------------------------ 
C_ROOT.C 
 
Copyright 1995-1996 Keil Software, Inc. 
------------------------------------------------------------------------------*/ 
 
#include <stdio.h> 
#include <reg51.h> 
 
extern void func0(void); 
extern void func1(void); 
 
void main(void) { 
 
/* INITIALIZE SERIAL INTERFACE TO 2400 BAUD @12MHz */ 
  SCON = 0x52;    /* SCON */ 
  TMOD = 0x20;    /* TMOD */ 
  TCON = 0x69;    /* TCON */ 
  TH1 =  0xf3;    /* TH1 */ 
 
  printf("MAIN PROGRAM CALLS A FUNCTION IN BANK 0 \n"); 
  func0(); 
  printf("MAIN PROGRAM CALLS A FUNCTION IN BANK 1 \n"); 
  func1(); 
 
  while(1); 
}