1. 首页
  2. 编程语言
  3. C
  4. MP3文件系统

MP3文件系统

上传者: 2018-12-28 02:20:49上传 RAR文件 35.04KB 热度 51次
bit fat_install (void) { Byte i; Uint32 tot_sect; Uint32 fat_nb_sector; Uint16 bpb_rsvd_sec_cnt; Byte bpb_num_fat; Uint16 bpb_root_ent_count; /* read and check usefull MBR info */ /* go to the first partition field */ Hard_read_open(MBR_ADDRESS); Hard_load_sector(); Hard_read_close(); fat_ptr_fats = 0x01; if ((fat_buf_sector[0] == 0xEB) && (fat_buf_sector[2] == 0x90)) /* Jump instruction to boot code */ { if ((fat_buf_sector[21] & 0xF0) == 0xF0) /* Media byte */ { if ((fat_b uf_sector[510] == 0x55) && (fat_buf_sector[511] == 0xAA)) /* signature */ { fat_ptr_fats = 0x00000000; /* disk may not be partitionned : first sector */ } /* is PBR */ else { return KO; /* no signature -> low level error */ } uf_sector[510] == 0x55) && (fat_buf_sector[511] == 0xAA)) /* signature */ { fat_ptr_fats = 0x00000000; /* disk may not be partitionned : first sector */ } /* is PBR */ else { return KO; /* no signature -> low level error */ }
用户评论
码姐姐匿名网友 2018-12-28 02:20:49

好玩。。改明自个儿野做个试试