编译指令编 译 指 令说 明# i n c l u d e包 含 另 一 个 文 件# d e f i n e定 义 一 个 宏 ( m a c r o ) 或 是 常 量# u n d e f取 消 一 个 宏 常 量 的 定 义# a s m 和 # e n d a s m在 程 序 中 加 入 汇 编 语 言 的 程 序# i f d e f 、 # i f n d e f 、 # e l s e 、 # e n d i f用 于 条 件 式 的 编 译注解:/ / — 单 行 注 解 ; / * 多 行 注 解 * /基本数据类型 (int,float,double,char,void )数据类型类型说明长度(位)数据长度b i t位10 , 1c h a r字符8— 1 2 8 ~ 1 2 7u n s i g n e d c h a r无符号字符80 ~ 2 5 5s i g n e d c h a r有符号字符8— 1 2 8 ~ 1 2 7i n t整型16— 3 2 7 6 8 ~ 3 2 7 6 7s h o r t i n t短整型16- 3 2 7 6 8 ~ 3 2 7 6 7u n s i g n e d i n t无符号整型160 ~ 6 5 5 3 5s i g n e d i n t有符号整型16— 3 2 7 6 8 ~ 3 2 7 6 7l o n g i n t长整型32—2147483648~2147483647u n s i g n e d l o n g i n t无符号长整型320 ~ 4 2 9 4 9 6 7 2 9 5s i g n e d l o n g i n t有符号长整形32—2147483648~2147483647f l o a t浮点数(实数)320 。 1 7 5 e — 3 8 ~ 0 。 4 0 2 e 3 8d o u b l e双精度浮点320 。 1 7 5 e — 3 8 ~ 0 。 4 0 2 e 3 8v o i d空0没任何数据用户自定义数据类型格式t y p e d e f s t r u c t {数据类型 变量序列 1;数据类型 变量序列 1;...}自定义数据类型的名称;保留字_at_ , alien,bdata , break , bit , case,char , code,compact , const,continue,data,default,do,double , far,else , enum , extern , float , for,goto , if,funcused ,idata,int,inline , interrupt , large , long,pdata , _priority_,reentrant , return,sbit,sfr ,sfr16,short , sigend , sizeof,small , static,struct,switchc_task_ , typedef,using,union,unsigned,void ,volatile,while,xdata常量表示法常数规则...