您正在查看 "c学习笔记" 分类下的文章
2008年05月21日 星期三 14:33
Many new microcontrollers have been developed in the past few years. Some of these devices require special startup code in order to properly initialize all on-chip peripherals and memory.
QUESTION
I've compiled and linked my 8051 program. I noticed that there is some startup code and variable initialization code that's included in my program. Where did it come from?
ANSWER
The startup code is stor |
2008年03月06日 星期四 15:34
具体办法是:在C51用unsigned char定义的变量,则在A51中必需对应声明该变量在DATA区;在C51用bit定义位变量,则在A51中必需对应声明该变量在可位选区。A51中用症结字EXTRN表现外部变量,对应关系如下:
C51 定义 A51声明
unsigned char varible_name<->EXTRN DATA(varible_name)
bit bit_name <->EXTRN BIT (bit_name) |
2008年02月22日 星期五 08:54
2008年01月29日 星期二 15:09
|
C语言是一种编译型程序设计语言,它兼顾了多种高级语言的特点,并可以调用汇编语言的子程序。用C语言设计开发微控制器程序已成为一种必然的趋势。Franklin C51是一种专门针对Intel 8051系列微处理器的C开发工具,它提供了丰富的库函数,具 | |
2008年01月29日 星期二 14:40
SEGMENT
用于声明一个段名,属于汇编命令。
其前面的符号表示段名,后面的符号为段的类型,如CODE为程序代码段,DATA代表内部RAM段。
RSEG xxx
声明以下的语句应位于可重定位的xxx段,在编译时 |
|
|