u8 FUN_BOOT_CheckJumpInfoCRCVd_u8(u8 arg_CRCVal_u8);
u8 test[5];
int main () {
//JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。
printf("Hello world! - c.jsrun.net.\n");
test[0] = FUN_BOOT_CheckJumpInfoCRCVd_u8(0x7D);
test[1] = FUN_BOOT_CheckJumpInfoCRCVd_u8(0x3B);
test[2] = FUN_BOOT_CheckJumpInfoCRCVd_u8(0x20);
test[3] = FUN_BOOT_CheckJumpInfoCRCVd_u8(0x66);
test[4] = FUN_BOOT_CheckJumpInfoCRCVd_u8(0x76);
printf("0x7D:%d\n",test[0]);
printf("0x3B:%d\n",test[1]);
printf("0x20:%d\n",test[2]);
printf("0x66:%d\n",test[3]);
printf("0x76:%d\n",test[4]);
return 0;
}
u8 FUN_BOOT_CheckJumpInfoCRCVd_u8(u8 arg_CRCVal_u8)
{
u8 i = 0;
u8 l_BootJumpInfoCRCTable_u8[4] = {0x7D,0x3B,0x20,0x66};
u8 l_ret_u8 = 0;
for(i = 0;i < 4;i++)
{
if(arg_CRCVal_u8 == l_BootJumpInfoCRCTable_u8[i])
{
l_ret_u8 = 1;
break;
}
}
return l_ret_u8;
}