main.lst

来自「STC51系列的源码」· LST 代码 · 共 89 行

LST
89
字号
C51 COMPILER V8.02   MAIN                                                                  09/26/2008 13:29:16 PAGE 1   


C51 COMPILER V8.02, COMPILATION OF MODULE MAIN
OBJECT MODULE PLACED IN MAIN.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE MAIN.c LARGE BROWSE DEBUG OBJECTEXTEND

line level    source

   1          /********************************************************************************/
   2          /* filename : MAIN.c                                                            */
   3          /* created  : xillinx                                                           */
   4          /* descript : 系统的C函数入口                                                   */
   5          /********************************************************************************/
   6          #include "../CPU/CPU.h"
   7          #include "../CFG/CFG.h"
   8          #include "../PCC/PCC.h"
   9          #include "../UART/UART.h"
  10          #include "../LED/LED.h"
  11          #include "../SEG7/SEG7.h"
  12          #include "../HC595/HC595.h"
  13          #include "../IRM/IRM.h"
  14          
  15          unsigned int  system_timer =0x00;    //* 这是系统需要的定时器变量
  16          
  17          /********************************************************************************/
  18          /* fun_name : MAIN_interrupt_hook_process()                                     */
  19          /* version  : v1.00                                                             */
  20          /* created  : xillinx                                                           */
  21          /* descript : 定时器钩子函数的处理,如果需要使用这些函数,需要重新挂接,如果不需要 */
  22          /*  不需要做任何事情                                                            */
  23          /********************************************************************************/
  24          void MAIN_interrupt_hook_process (void)
  25          {   CPU_001_tick_process = CPU_interrupt_proc_null; //* 定时器钩子函数的缺省处理,如果需要使用这些函数,需要
             -重新挂接
  26   1          CPU_002_tick_process = CPU_interrupt_proc_null;
  27   1          CPU_004_tick_process = CPU_interrupt_proc_null;
  28   1          CPU_008_tick_process = CPU_interrupt_proc_null;
  29   1          CPU_010_tick_process = CPU_interrupt_proc_null;
  30   1          CPU_020_tick_process = CPU_interrupt_proc_null;
  31   1          CPU_040_tick_process = CPU_interrupt_proc_null;
  32   1          CPU_080_tick_process = CPU_interrupt_proc_null;
  33   1          CPU_100_tick_process = CPU_interrupt_proc_null;
  34   1          CPU_200_tick_process = CPU_interrupt_proc_null; //* 2x 512MS=1024MS
  35   1          CPU_400_tick_process = CPU_interrupt_proc_null; //* 2x1024MS=2048MS
  36   1          CPU_extern_0_process = CPU_interrupt_proc_null;
  37   1          CPU_extern_1_process = CPU_interrupt_proc_null;
  38   1          CPU_timer_02_process = CPU_interrupt_proc_null;
  39   1          CPU_extern_0_process = IRM_recv_process;        //* 挂接到外部中断0上面
  40   1      }
  41          
  42          /********************************************************************************/
  43          /* function : main()                                                            */
  44          /* recension: xillinx                                                           */
  45          /* descript : 主函数入口                                                        */
  46          /********************************************************************************/
  47          void main (void)
  48          {   unsigned int delax=0x8000;
  49   1          while(delax--)
  50   1          {   ;
  51   2          }
  52   1          UART_buffer_initilize();
  53   1          MAIN_interrupt_hook_process();      //* CPU的挂接函数处理
  54   1          CPU_source_initialize();            //* 控制CPU的资源
C51 COMPILER V8.02   MAIN                                                                  09/26/2008 13:29:16 PAGE 2   

  55   1          SEG7_clear_screen();
  56   1          LED_clear();
  57   1          HC595_refresh();
  58   1          while(1) 
  59   1          {   ;
  60   2          }
  61   1      }
  62          


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =    233    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =      2    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----    ----
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
END OF MODULE INFORMATION.


C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)

⌨️ 快捷键说明

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