diff --git a/.gitignore b/.gitignore index dfe6956..e125a3d 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ # 生成结果 result/*.bin +result/*.html diff --git a/resource/File_Upgrade1.hexpat b/resource/File_Upgrade1.hexpat new file mode 100644 index 0000000..db4a536 --- /dev/null +++ b/resource/File_Upgrade1.hexpat @@ -0,0 +1,36 @@ +struct time +{ + u16 year; + u8 month; + u8 day; + u8 hour; + u8 min; + +}; + +struct block_cpu +{ + u32 prog_size; + u8 byte_verify[16]; +}; + + +char file_mark[0x08] @ 0x00; +u16 prod_type @ 0x08; +char prog_id[0x0C] @ 0x0A; + +u8 mark_compress @ 0x16; +u8 mark_verify @ 0x17; +u8 byte_verify[0x10] @ 0x18; + +time file_time @ 0x28; +u32 data_size @ 0x2E; +block_cpu cpu1 @ 0x32; +block_cpu cpu2 @ 0x46; +u16 prog_type @ 0x5A; + +u16 area @ 0x5C; + +char prog_name[64] @ 0x5E; +u8 Unused[24] @ 0x9E; +u16 Header_verify @ 0xB6; \ No newline at end of file