亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? iso9660.c

?? - file system ISO9660 iso9660.c iso9660.h - file system FAT12/16 fat.c fat.h - file sy
?? C
?? 第 1 頁 / 共 3 頁
字號(hào):
/*C**************************************************************************
* NAME:         iso9660.c
*----------------------------------------------------------------------------
* Copyright (c) 2003 Atmel.
*----------------------------------------------------------------------------
* RELEASE:      snd1c-refd-nf-4_0_3      
* REVISION:     1.3     
*----------------------------------------------------------------------------
* PURPOSE:
* ISO9660 file-system basics functions
* 
* NOTES:
*   Some variables are shared with fat.c module :
*     data  Uint32 fat_ptr_data
*     data  Uint16 fat_fclust_byte_count
*     idata Uint16 fat_dclust_byte_count
*     idata Uint32 fat_dir_current_sect
*     idata Uint16 fat_dir_list_index
*     xdata char   ext[]
*     xdata Byte   fat_buf_sector[]
*   Global variable :
*     pdata Byte   gl_buffer[]
*
*****************************************************************************/

/*_____ I N C L U D E S ____________________________________________________*/

#include "config.h"                         /* system configuration */
#include "..\mem\hard.h"                    /* low level function definition */
#include "file.h"                           /* file function definition */
#include "iso9660.h"                        /* iso9660 file-system definition */


/*_____ M A C R O S ________________________________________________________*/


/*_____ D E F I N I T I O N ________________________________________________*/

/* shared variables with fat.c module */
extern  data  Uint32 fat_ptr_data;
extern  data  Uint16 fat_fclust_byte_count;
extern  idata Uint16 fat_dclust_byte_count;
extern  idata Uint32 fat_dir_current_sect;
extern  xdata Uint16 fat_dir_list_index;   
extern  xdata char   ext[]; 
extern  xdata Byte   fat_buf_sector[];
extern  pdata Byte   gl_buffer[];
extern  xdata Uint32 fat_dir_start_sect;   
extern  xdata Uint16  fat_dir_list_last;    
extern  xdata Byte current_ext;
extern  idata Uint16  fat_dchain_index;
extern  idata Uint16  fat_fchain_nb_clust;  


extern xdata  Byte    fat_fchain_index_save;         
extern xdata  Byte    fat_fchain_nb_clust_save;
extern xdata  Uint16  fat_fclust_byte_count_save;



#define iso_dir_current_sect      fat_dir_current_sect
#define iso_dir_byte_count        fat_dclust_byte_count
#define iso_f_current_sect        fat_ptr_data
#define iso_current_byte_counter  fat_fclust_byte_count
#define iso_current_dir_file      fat_buf_sector
#define iso_file_index            fat_dir_list_index
#define iso_file_max_index        fat_dir_list_last
#define iso_dir_start_sect        fat_dir_start_sect
#define iso_dir_size              fat_dchain_index

#define iso_f_nb_sector_save      fat_fclust_byte_count_save
#define iso_f_nb_byte_save        fat_fchain_nb_clust


extern  char    pdata *lfn_name;                  /* long filename limited to MAX_FILENAME_LEN chars  */
extern  xdata iso_VolumeDescriptor iso_header;    /* iso header informations                          */
extern  xdata iso_cache  iso_file_cache;          /* cache for the current file                       */
extern  idata Uint16  iso_f_nb_sector;
extern  idata Uint16  iso_f_max_sector;
extern  bdata bit     iso_cd;                     /* if set to one cd is iso else cd is joliet format  */

/*_____ D E C L A R A T I O N ______________________________________________*/
Uint16 iso_dgetw(void);




/*F**************************************************************************
* NAME: fat_install
*----------------------------------------------------------------------------
* PARAMS:
*
* return:
*   - OK: intallation succeeded
*   - KO: no primary or supplementary volume descriptor found
*         
*----------------------------------------------------------------------------
* PURPOSE:
*   Install the iso file system
*----------------------------------------------------------------------------
* EXAMPLE:
*----------------------------------------------------------------------------
* NOTE:
*
*----------------------------------------------------------------------------
* REQUIREMENTS:
*****************************************************************************/
bit iso_install(void)
{

  iso_f_current_sect = Hard_iso_read_toc() + 1 + 16;
  iso_cd = 0;

  if (Hard_iso_read_open(iso_f_current_sect) == OK)
  {
    if ((Hard_iso_read_word() & 0xFF) == 0x01)                    /* ISO CD */
    {
      iso_f_current_sect--;
      iso_cd = 1;
    }
    Hard_iso_read_close();
  }
  
  if (iso_read_volume_descriptor(iso_f_current_sect) == OK)   /* read volume descriptor */
    return OK;
  else
    return KO;
}


/*F**************************************************************************
* NAME: iso_read_volume_descriptor
*----------------------------------------------------------------------------
* PARAMS:
*   sector: firt sector of ISO block location
* return:
*   - OK: intallation succeeded
*   - KO: error
*----------------------------------------------------------------------------
* PURPOSE:
*   Read CD volumes descriptors.
*----------------------------------------------------------------------------
* EXAMPLE:
*----------------------------------------------------------------------------
* NOTE:
*   
*----------------------------------------------------------------------------
* REQUIREMENTS:
*****************************************************************************/
bit iso_read_volume_descriptor (Uint32 sector)
{
Byte i;
Uint16 tmp_word;

  /* settting current offset */
  iso_dir_current_sect = sector;
  
  if (Hard_iso_read_open(iso_dir_current_sect) == OK)
  {
    /* Byte 1 - 2 : Volume descriptor type & Standard identifier                          */
    /* Byte 3 - 4 : Standard identifier                                                   */
    /* Byte 5 - 6 : Standard identifier                                                   */
    /* Standard identifier is 'CD001'                                                     */
    tmp_word  = Hard_iso_read_word();
    if ( (((Byte*)&tmp_word)[0] != 0x43) ||   /* check if it is a standard iso cd volume  */
         (Hard_iso_read_word() != 0x3044) ||  /* string 0D                                */
         (Hard_iso_read_word() != 0x3130))    /* string 10                                */
    {
      Hard_iso_read_close();
      return KO;
    }
    
    switch (((Byte*)&tmp_word)[1])
    {
      case TYPE_BOOT_RECORD:                  /* Boot record                              */
      {
        break;
      }

      case TYPE_PRIMARY_VD:                   /* Primary Volume Descriptor or             */
      case TYPE_SUPPLEMENTARY_VD:             /* Supplementary Volume Descriptor          */
      {
        i = 3;
        while (i != 40)
        {
          Hard_iso_read_word();               /* dummy read                               */
          i++;
        }
        
        iso_header.volume_size = Hard_iso_read_word();                /* Byte 81 - 82 */
        iso_header.volume_size += ((Uint32)(Hard_iso_read_word()) << 16);          /* Byte 83 - 84 */
        Hard_iso_read_word();                                         /* Byte 85 - 86 */
        Hard_iso_read_word();                                         /* Byte 87 - 88 */
        i = 44;
        while (i != 64)
        {
          Hard_iso_read_word();               /* dummy read                               */
          i++;
        }
        
        /* Byte 129 - 132 : Logical Block Size - Both byte order                          */
        iso_header.logical_block_size = Hard_iso_read_word();
        Hard_iso_read_word();

        while (i != 76)
        {
          tmp_word = Hard_iso_read_word();    /* dummy read                               */
          i++;
        }
        /* Byte 157 - 190 : Directory record for root directory                           */
        /* Sbyte 1 : Length of directoy record                                            */
        /* Sbyte 2 : Extended attribute record length                                     */ 
        iso_header.root.length = (Hard_iso_read_word() & 0xFF); 
        /* Sbyte 3 - 10 : Location of extent - Both byte order                            */
        iso_header.root.extend_location = Hard_iso_read_word();
        iso_header.root.extend_location += ((Uint32)(Hard_iso_read_word()) << 16);
        Hard_iso_read_word();
        Hard_iso_read_word();
        /* Sbyte 11 - 18 : Data Length - Both Byte order                                  */ 
        iso_header.root.data_length = Hard_iso_read_word();
        iso_header.root.data_length += ((Uint32)(Hard_iso_read_word()) << 16);
        iso_dir_size = iso_header.root.data_length / iso_header.logical_block_size;
        break;
      }
  
      case TYPE_PARTITION_VD:               /* Partition Volume Descriptor                */
      {
        break;
      }
      case TYPE_VOLUME_SET_TERMINATOR:      /* Volume set terminator                      */
      {
        break;
      }

      default:                              /* error                                      */
      {
        return KO;
      }
    }
    Hard_iso_read_close();
    return OK;
  }
  else
    return KO;
}


/*F**************************************************************************
* NAME: iso_fseek
*----------------------------------------------------------------------------
* PARAMS:
*   offset: relative signed seek offset in file
*
* return:
*   seek status:  - OK: seek done
*                 - KO: out of file seek
*----------------------------------------------------------------------------
* PURPOSE:
*   Change file pointer of an openned file
*----------------------------------------------------------------------------
* EXAMPLE:
*----------------------------------------------------------------------------
* NOTE:
*   Seek is done with byte boundary
*----------------------------------------------------------------------------
* REQUIREMENTS:
*****************************************************************************/
bit iso_fseek(Int16 offset)
{
Uint16 i;         /* generic counter */
Uint32 file_pos;

  file_pos = ((iso_f_current_sect - iso_file_cache.info.extend_location) * iso_header.logical_block_size) 
             + (Uint32)(iso_current_byte_counter);

  if ((file_pos + offset) < 0)
    return KO;

  file_pos += offset;

  iso_f_nb_sector = (file_pos / iso_header.logical_block_size);
  iso_f_current_sect = (Uint32)(iso_f_nb_sector) + iso_file_cache.info.extend_location;
  iso_current_byte_counter =  ((Uint16)file_pos % iso_header.logical_block_size);

  Hard_iso_read_close();
  Hard_iso_read_open(iso_f_current_sect);
  for (i = 0; i < iso_current_byte_counter; i++)
  {
    Hard_iso_read_byte();
  }
  return OK;
}



/*F**************************************************************************
* NAME: iso_fseek_abs
*----------------------------------------------------------------------------
* PARAMS:
*   offset: absolute seek offset in file
*
* return:
*----------------------------------------------------------------------------
* PURPOSE:
*   Move ahead file read pointer of an openned file
*----------------------------------------------------------------------------
* EXAMPLE:
*----------------------------------------------------------------------------
* NOTE:
*----------------------------------------------------------------------------
* REQUIREMENTS:
*****************************************************************************/
bit iso_fseek_abs(Uint32 offset)
{
Uint16 i;         /* generic counter           */

  iso_f_nb_sector = (Uint16)(offset / iso_header.logical_block_size);
  iso_current_byte_counter = (Uint16)(offset % iso_header.logical_block_size);
  iso_f_current_sect = (Uint32)(iso_f_nb_sector) + iso_file_cache.info.extend_location;
  Hard_iso_read_close();
  Hard_iso_read_open(iso_f_current_sect);
  for (i = 0; i < iso_current_byte_counter; i++)
  {
    Hard_iso_read_byte();
  }
  return OK;
}

/*F**************************************************************************
* NAME: iso_dseek
*----------------------------------------------------------------------------
* PARAMS:
*   offset: offset to current position in signed word value
*
* return:
*----------------------------------------------------------------------------
* PURPOSE:
*   Seek from the current position to a new offset computing relative 
*   poisition +/- scan size limited to a 16 bit offset
*----------------------------------------------------------------------------
* EXAMPLE:
*----------------------------------------------------------------------------
* NOTE:
*   
*----------------------------------------------------------------------------
* REQUIREMENTS:
*****************************************************************************/ 
bit iso_dseek(Int16 offset)
{
Uint16 i;         /* generic counter */
Uint32 dir_pos;

  dir_pos = ((iso_dir_current_sect - iso_header.root.extend_location) * iso_header.logical_block_size) 
            + iso_dir_byte_count;
  if ((dir_pos + offset) < 0)
    return KO;

  dir_pos += offset;

  iso_dir_current_sect = (dir_pos / iso_header.logical_block_size) 
                        + iso_header.root.extend_location;
  iso_dir_byte_count = dir_pos % iso_header.logical_block_size;

  Hard_iso_read_close();
  Hard_iso_read_open(iso_dir_current_sect);
  for (i = 0; i < iso_dir_byte_count; i++)
  {
    Hard_iso_read_byte();
  }
  return OK;
}


/*F**************************************************************************
* NAME: iso_get_file_dir
*----------------------------------------------------------------------------
* PARAMS:
*
* return:
*----------------------------------------------------------------------------
* PURPOSE:
*   Give information about the directory :
*     - total number of entries
*----------------------------------------------------------------------------
* EXAMPLE:
*
*----------------------------------------------------------------------------
* NOTE:
*   
*----------------------------------------------------------------------------
* REQUIREMENTS:
*   
*****************************************************************************/
void iso_get_file_dir(void)
{
Byte attributes;
Byte len;
Byte i;
Byte j;
Byte k;
Byte entry_len;
Byte tmp_byte;
Byte byte_to_read;
Byte padding_byte;
Byte entry_rel;
Uint16 tmp_word;
bit no_more_entry;
bit end_of_name;


  no_more_entry = FALSE;
  entry_rel = 0;
  fat_dir_list_index = 0;
  do
  {
    padding_byte = 0;
    do
    {
      tmp_word = iso_dgetw();
      padding_byte++;
      if ((iso_dir_current_sect - iso_dir_start_sect) >= iso_dir_size)
      {
        no_more_entry = TRUE;
      }

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕亚洲一区二区av在线| 精品乱码亚洲一区二区不卡| 亚洲狼人国产精品| 色88888久久久久久影院野外| 亚洲另类一区二区| 欧美网站一区二区| 日韩不卡一二三区| 久久色视频免费观看| 99在线精品一区二区三区| 18成人在线视频| 欧美中文字幕一二三区视频| 日本不卡视频在线| 国产欧美一区二区三区网站 | 欧美三级在线播放| 蜜臀av性久久久久蜜臀aⅴ| 久久久精品蜜桃| 99久久99久久免费精品蜜臀| 午夜精品福利一区二区三区av| 日韩午夜激情视频| 不卡在线观看av| 日韩精品成人一区二区在线| 国产日韩成人精品| 欧美三级三级三级| 国产精品一区二区三区乱码| 一区二区三区在线免费视频| 欧美一区二区三区婷婷月色 | 亚洲精品国久久99热| 91麻豆精品国产91久久久久久 | 色94色欧美sute亚洲线路二| 免费成人性网站| 中文字幕一区免费在线观看 | 色综合久久中文字幕| 水蜜桃久久夜色精品一区的特点| 国产欧美综合色| 制服丝袜中文字幕一区| 99精品视频在线观看免费| 日本欧美一区二区三区乱码| 中文字幕亚洲一区二区av在线| 日韩一区二区三区精品视频| 972aa.com艺术欧美| 国产一区二区三区四| 午夜免费欧美电影| 亚洲视频免费看| 久久久99精品免费观看| 欧美视频在线播放| 99久久国产综合精品女不卡| 精品亚洲国产成人av制服丝袜| 夜夜精品浪潮av一区二区三区| 国产女主播一区| 欧美成人三级在线| 精品污污网站免费看| 99精品视频在线观看| 国产在线一区观看| 麻豆国产91在线播放| 午夜精品影院在线观看| 一区二区视频免费在线观看| 国产精品久久毛片| 国产精品视频第一区| 欧美一区二区免费观在线| 欧美三级日本三级少妇99| 99精品视频在线观看免费| 国产成人aaa| 国产激情一区二区三区桃花岛亚洲| 日韩福利电影在线观看| 首页国产欧美久久| 香蕉久久夜色精品国产使用方法| 尤物av一区二区| 亚洲人成精品久久久久久| 国产精品久久久久四虎| 国产精品日韩成人| 中文欧美字幕免费| 国产精品免费免费| 国产精品二三区| 中文字幕一区二区不卡| 国产精品久久久久一区| 中文字幕一区二区三区av| 国产精品免费观看视频| 亚洲日本在线a| 一区二区在线观看视频| 亚洲一区免费视频| 天天色综合天天| 肉色丝袜一区二区| 麻豆精品一区二区三区| 国产一区二区剧情av在线| 国产一区二区中文字幕| 国产精品77777| 成人免费毛片嘿嘿连载视频| 97超碰欧美中文字幕| 在线观看91视频| 69堂亚洲精品首页| 欧美v日韩v国产v| 国产网红主播福利一区二区| 国产精品免费看片| 亚洲成人黄色影院| 久久99精品视频| 国产ts人妖一区二区| 99视频超级精品| 欧美视频一二三区| 久久久久久久久久电影| 亚洲少妇中出一区| 视频一区欧美精品| 岛国精品在线观看| 欧美视频一二三区| 久久综合狠狠综合久久激情| 国产欧美精品一区二区色综合 | www亚洲一区| 中文字幕高清一区| 玉足女爽爽91| 日本成人中文字幕在线视频| 国产精品白丝jk白祙喷水网站| jiyouzz国产精品久久| 7777精品伊人久久久大香线蕉完整版 | 欧美日韩日日摸| 26uuu国产电影一区二区| 亚洲你懂的在线视频| 麻豆久久久久久| 99久久伊人网影院| 欧美一级艳片视频免费观看| 国产色一区二区| 亚洲地区一二三色| 国产成人aaa| 日韩一级二级三级精品视频| 亚洲国产精华液网站w| 日韩成人一区二区三区在线观看| 成人激情动漫在线观看| 欧美高清你懂得| 亚洲三级在线看| 秋霞电影一区二区| 色先锋aa成人| 国产三级精品在线| 亚洲在线一区二区三区| 国产精品456| 欧美日韩成人在线一区| 中文字幕一区二区三中文字幕| 日韩国产高清在线| 在线视频欧美精品| 国产精品麻豆99久久久久久| 蜜臀久久久99精品久久久久久| 91亚洲国产成人精品一区二区三| 精品sm在线观看| 日韩综合在线视频| 91国产福利在线| 国产精品久久久久久户外露出| 久久99国产精品麻豆| 欧美区视频在线观看| 亚洲视频在线观看三级| 成人黄动漫网站免费app| 精品久久久久99| 日本亚洲欧美天堂免费| 欧美三级日韩三级| 亚洲一二三专区| 一本在线高清不卡dvd| 中文字幕乱码亚洲精品一区| 九九在线精品视频| 欧美一区二区精品| 欧美aaaaa成人免费观看视频| 欧洲亚洲国产日韩| 一区二区三区不卡在线观看 | 成人黄色网址在线观看| 久久久99久久| 国产凹凸在线观看一区二区| 亚洲精品在线电影| 国模套图日韩精品一区二区| 欧美mv和日韩mv的网站| 久久精品国产一区二区三| 欧美一区二区在线视频| 蜜臀av性久久久久av蜜臀妖精| 91麻豆精品国产91久久久久| 日韩av二区在线播放| 欧美一区二区视频在线观看2020 | 一区二区三区在线视频免费观看| 成人18视频在线播放| 中文字幕一区三区| 在线国产电影不卡| 亚洲超丰满肉感bbw| 欧美一区2区视频在线观看| 日产国产高清一区二区三区| 欧美成人免费网站| 国模娜娜一区二区三区| 国产精品视频第一区| 在线欧美一区二区| 日精品一区二区| 久久久精品一品道一区| av欧美精品.com| 亚洲日本成人在线观看| 色老综合老女人久久久| 五月婷婷激情综合网| 精品成人免费观看| 成人不卡免费av| 亚洲美女精品一区| 欧美一区二区三区四区视频| 国产一区二区三区香蕉| 亚洲精品欧美专区| 日韩女优av电影| kk眼镜猥琐国模调教系列一区二区| 亚洲另类中文字| 精品国产一区二区在线观看| 成人国产精品免费观看视频| 亚洲电影第三页| 久久久www免费人成精品|