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

📄 variable.c

📁 耐心说明您提供的文件包含的内容和具体功能(至少要20
💻 C
字号:
/**************** (c) 1998  SGS-Thomson Microelectronics **********************
     
PROJECT  : ST72101
COMPILER : ST7 HICROSS C (HIWARE)

MODULE  :  variable.c
VERSION :  V 2.0

CREATION DATE :  03/07/98

AUTHOR : PPG 8-bit Micro Application Team 

-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

DESCRIPTION : Application Global Variables Definition

              
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

MODIFICATIONS :

******************************************************************************/

    unsigned char data1 = 0x10;    // Those registers will start from add 0x100 as             
    unsigned char data2 = 0xC3;    // no special pragma was ever declared before.              
    unsigned char data3;           // This comes from the .prm file where the default segment  
                                   // is located at address 0x100.                             
                                          
#pragma DATA_SEG SHORT _ZEROPAGE                                                                       
                                                                                                       
    unsigned char ramloc1;                                                                             
    unsigned char ramloc2;          // According to the prm file, the _ZEROPAGE starts at       
    unsigned char ramloc3;          // address 0x080 so the next three registers will be located
                                    // at address 80h, 81h and 83h.                             

                                    
#pragma CONST_SEG ROM               // Once again, the prm file indicates the start address of  
                                    // the ROM segment.                                         
                                    // The table defined below, will be a table of 10 constants.                                                                   

    const unsigned char table[10] = {                                                                  
                                    0x10,                                                              
                                    0xAA,  
                                    0x00,  
                                    0xBB,  
                                    19,
                                    0xFF,
                                    0xDC,
                                    0xAB,
                                    0xC1,
                                    0x03
                                    }
                                    ;


/*** (c) 1998  SGS-Thomson Microelectronics ****************** END OF FILE ***/    

⌨️ 快捷键说明

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