⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.lst

📁 用89C51SND1C实现MP3播放器的源代码.用KEIL c51编写.
💻 LST
📖 第 1 页 / 共 2 页
字号:
C51 COMPILER V6.23a  MAIN                                                                  11/27/2003 16:35:41 PAGE 1   


C51 COMPILER V6.23a, COMPILATION OF MODULE MAIN
OBJECT MODULE PLACED IN main.OBJ
COMPILER INVOKED BY: d:\SoftDev\Keil\C51\BIN\C51.EXE main.c LARGE BROWSE DEBUG OBJECTEXTEND

stmt level    source

   1          /****************************************************************/
   2          /*                                      UP-MP3DIY100                                                            */
   3          /*              Beijing Universal Pioneering Technology Co., LTD                */
   4          /*              CopyRighted,All right Reserved  www.up-tech.com                 */
   5          /*                                              July,2003                                                               */
   6          /*                              010-62387873  62381842                                                  */
   7          /****************************************************************/
   8          
   9          #include <REGSND1.H>
  10          #include "uart.h"
  11          #include "flash.h"
  12          
  13          unsigned char databuff[SectorLength];
  14          unsigned char databuff1[128];
  15          
  16          code unsigned char BPB_Data[512]=
  17          {
  18          0xeb,0x3c,0x90,//       Offset_U8_BS_jmpBoot            0
  19          'F','r','a','n','k','w','x','j',// Offset_U8_BS_OEMName         3
  20          0x00,0x02,// Offset_short int_BPB_BytsPerSec    11      //Count of bytes per sector. This value may take on only t
             -he  //
  21          //512                                                                   //following values: 512, 1024, 2048 or 4096. If maximum       //
  22                                                                                          //compatibility is desired, only the value 512 should be used.//
  23          64,// Offset_U8_BPB_SecPerClus  13      //Number of sectors per allocation unit. This value must be a //
  24                                                                                          //power of 2 that is greater than 0. The legal values are 1,  //
  25                                                                                          //      2, 4, 8, 16, 32, 64,and 128.                                //
  26          0x1,0x00,// Offset_short int_BPB_RsvdSecCnt     14      //Number of reserved sectors in the Reserved region of the 
             -   //
  27                                                                                          //volume starting at the first sector of the volume.For FAT32 //
  28                                                                                          //volumes, this value is typically 32.                        //
  29          0x02,// Offset_U8_BPB_NumFATs           16      //The count of FAT data structures on the volume.             //
  30          0xb0,0x03,// Offset_short int_BPB_RootEntCnt    17      //Is only useful for FAT12 and FAT16 volumes.             
             -    //
  31          //                                                                              //For FAT32 volumes,this field must be set to 0.              //
  32          //通过调整文件项为03b0,从而使数据扇区刚好从Block2Sector0开始,但
  33          //文件分区表中根目录区并为标记为已占用。数据实际从Block4Sector0开始
  34          0xea,0x7f,// Offset_short int_BPB_TotSec16              19      //For FAT12 and FAT16 volumes, this field contains the sect
             -or //
  35                                                                                          //count, and BPB_TotSec32 is 0 if the total sector count fits //
  36                                                                                          //(is less than 0x10000).                                     //
  37          0xf8,// Offset_U8_BPB_Media                     21      //0xF8 is the standard value for fixed(non-removable) media.  //
  38                                                                                          //For removable media, 0xF0 is frequently used.               //
  39          0x02,0x00,// Offset_short int_BPB_FATSz16               22      //This field is FAT12/FAT16 16bit count of sectors occupied 
             -by//
  40                                                                                          //      1 FAT.On FAT32 volumes this field must be 0, and BPB_FATSz32//
  41                                                                                          //contains the FAT size count.                                //
  42          0x00,0x00,// Offset_short int_BPB_SecPerTrk     24      //Sectors per track for interrupt 0x13. This field is only 
             -   //
  43                                                                                          //relevant for media that have a geometry (volume is broken   //
  44                                                                                          //down into tracks by multiple heads and cylinders) and are   //
  45                                                                                          //visible on interrupt 0x13.This field contains the           //
  46                                                                                          //"sectors per track" geometry value.                         //
  47          0x00,0x00,// Offset_short int_BPB_NumHeads              26      //Number of heads for interrupt 0x13. This field is relevan
             -t  //
  48                                                                                          //as discussed earlier for BPB_SecPerTrk.                     //
C51 COMPILER V6.23a  MAIN                                                                  11/27/2003 16:35:41 PAGE 2   

  49          0x01,0x00,0x00,0x00,// Offset_U32_BPB_HiddSec           28      //Count of hidden sectors preceding the partition that  
             -      //
  50                                                                                          //contains this FAT volume.                                   //
  51          0x00,0x00,0x00,0x00,// Offset_U32_BPB_TotSec32          32      //This field is the new 32-bit total count of sectors o
             -n the  //
  52                                                                                          //volume. This count includes the count of all sectors in all //
  53                                                                                          //four regions of the volume. This field can be 0; if it is 0,//
  54                                                                                          //then BPB_TotSec16 must be non-zero. For FAT32 volumes, this //
  55                                                                                          //field must be non-zero. For FAT12/FAT16 volumes, this field //
  56                                                                                          //contains the sector count if BPB_TotSec16 is 0 (count is    //
  57                                                                                          //greater than or equal to 0x10000).//
  58          0x00,// Offset_U8_BS_DrvNum             36      //This field is the FAT32 32-bit count of sectors occupied by //
  59                  //根据该值得到FAT的大小//                               //ONE FAT. BPB_FATSz16 must be 0.                             //
  60                  
  61          0x00,// Offset_U8_BS_Reserved           37      //    Bits 0-3 -- Zero-based number of active FAT.Only valid  //
  62                                                                                          //                if mirroring is disabled.                   //
  63                                                                                          //    Bits 4-6 -- Reserved.                                   //
  64                                                                                          //    Bit 7    -- 0 means the FAT is mirrored at runtime into //
  65                                                                                          //                  all FATs.                                 //
  66                                                                                          //             -- 1 means only one FAT is active;it is the one//
  67                                                                                          //                  referenced in bits 0-3.                   //
  68                                                                                          //    Bits 8-15 -- Reserved.                                  //
  69          0x29,// Offset_U8_BS_BootSig            38      //High byte is major revision number.                         //
  70                                                                                          //Low byte is minor revision number.                          //
  71          'N','A','M','E',// Offset_U32_BS_VolID          39      //This is set to the cluster number of the first cluster of   /
             -/
  72                  //根据该值得到ROOT的地址//                              //the root directory, usually 2 but not required to be 2.     //
  73                  
  74          'N','O',' ','N','A','M','E',' ',' ',' ',' ',// Offset_U2048_BS_VolLab           43      //Sector number of FSINFO struct
             -ure in the reserved area of   //
  75                                                                                          //the FAT32 volume.Usually 1.                                 //
  76          'F','A','T','1','6',' ',' ',' ',// Offset_U256_BS_FilSysType    54      //If non-zero, indicates the sector number
             - in the reserved    //
  77                                                                                          //area of the volume of a copy of the boot record.            //
  78          //Executable Code
  79          0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,      
  80          0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,      
  81          0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,      
  82          0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,      

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -