摘要
当前,单片机的应用程序主要是由C语言编写,而汇编语言直接面向底层硬件,能提高系统的准确性与效率。为了兼顾二者优点,可以采用混合编程的方式来编写单片机的应用程序。本文简单介绍了C51和汇编的2种混合编程方式,并通过具体范例说明了混合编程的步骤与注意事项。
At present, the application program of SCM is mainly written by C language, and the assembly language directly faces the underlying hardware, which can improve the accuracy and efficiency of the system. In order to take the advantage of the 2 programming languages, we can use mixed programming to write the application program on the singlechip. This paper introduces two kinds of mixed programming methods of C51 and assembly, and explains the steps and matters needing attention for mixed programming through the examples.
作者
张幼麟
Zhang Youlin(Department of Physics and Electronic Information, Leshan Normal University, leshan Sichuan 614000, China)
出处
《信息与电脑》
2018年第20期91-92,共2页
Information & Computer
关键词
单片机
C51
汇编语言
混合编程
singlechip
C51
assembly language
mixed programming