bit c_moon;
//子函數(shù),用于讀取數(shù)據(jù)表中農(nóng)歷月的大月或小月,如果該月為大返回1,為小返回0
bit get_moon_day(uchar month_p,uint table_addr)
{
uchar temp10;
switch (month_p){
case 1:{temp10=year_code[table_addr]&0x08;
if (temp10==0)return(0);else return(1);}
case 2:{temp10=year_code[table_addr]&0x04;
if (temp10==0)return(0);else return(1);}
case 3:{temp10=year_code[table_addr]&0x02;
if (temp10==0)return(0);else return(1);}
case 4:{temp10=year_code[table_addr]&0x01;
if (temp10==0)return(0);else return(1);}
case 5:{temp10=year_code[table_addr+1]&0x80;
if (temp10==0) return(0);else return(1);}
case 6:{temp10=year_code[table_addr+1]&0x40;
if (temp10==0)return(0);else return(1);}
case 7:{temp10=year_code[table_addr+1]&0x20;
if (temp10==0)return(0);else return(1);}
case 8:{temp10=year_code[table_addr+1]&0x10;
if (temp10==0)return(0);else return(1);}
case 9:{temp10=year_code[table_addr+1]&0x08;
if (temp10==0)return(0);else return(1);}
case 10:{temp10=year_code[table_addr+1]&0x04;
if (temp10==0)return(0);else return(1);}
case 11:{temp10=year_code[table_addr+1]&0x02;
if (temp10==0)return(0);else return(1);}
case 12:{temp10=year_code[table_addr+1]&0x01;
if (temp10==0)return(0);else return(1);}
case 13:{temp10=year_code[table_addr+2]&0x80;
if (temp10==0)return(0);else return(1);}
default:return(2);
}
}