首页 | 本学科首页   官方微博 | 高级检索  
     

单片机C51与汇编语言混合调用的实现
引用本文:王兰英,居锦武. 单片机C51与汇编语言混合调用的实现[J]. 四川理工学院学报(自然科学版), 2008, 21(3)
作者姓名:王兰英  居锦武
作者单位:四川理工学院计算机科学系,四川,自贡643000;四川理工学院计算机科学系,四川,自贡643000
摘    要:在编写单片机程序时,汇编语言具有速度快的优点,而C51则具有高级语言的优势。文章介绍了C51函数的内部转换规则和C51函数的参数传递规则。文章通过实例详细给出了实现C51与汇编语言混合调用的方法,包括C51内嵌汇编语言、C51调用汇编语言以及汇编语言调用C51。

关 键 词:单片机  C51  汇编语言  编程  函数  调用

Implementation of MCU Mixed Calling Between C51 and ASM
WANG Lan-ying,JU Jin-wu. Implementation of MCU Mixed Calling Between C51 and ASM[J]. Journal of Sichuan University of Science & Engineering(Natural Science Editton), 2008, 21(3)
Authors:WANG Lan-ying  JU Jin-wu
Abstract:When MCU is programmed, ASM is featured by its high speed, while C51 has the advantage of its advanced language. The paper introduces the internal transforming principle of C51 and its parameter transforming principle. And the approaches to mixed calling between C51 and ASM are construed with the examples, including the inline ASM of C51, the calling ASM of C51 and the calling of C51 in ASM.
Keywords:MCU  C51  ASM  programming  function  calling
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号