摘要
为提高嵌入式芯片汇编语言编码设计的水平,克服因语句结构本身的非结构化及存储分配的随意性所造成的困难,根据软件工程中结构化设计的规范,以MCS-51单片机汇编语言为例,提出了可操作性的解决方案:针对语句的结构,设计与结构化盒图等效的程序流程图和语句结构体,构建出结构化的选择结构和循环结构;针对存储的分配,设计依据程序之间的调用关系,同层共享非同层独享的变量存储空间分配策略。
In order to improve the design level of assembly language code in embedded chip and overcome the difficulty of unstructured language statements and random storage allocation,this article,taking MCS-51 MCU assembly language as an example,presents an operable solution according to structural design specifications in software engineering.Based on sentence structures,we have designed equivalent program flowchart and sentence structures with structured box figure to construct the structured choice structure and circulation structure.According to the distribution of storage and call relationship of programs,we have presented a variable storage space distribution strategy of same layer sharing and different layer exclusive.
出处
《长春大学学报》
2011年第6期22-26,共5页
Journal of Changchun University
基金
安徽省专业带头人资助项目(DDR2008GZ94)
安徽省省级教学名师资助项目(MS2009GZ07)
安徽省省级电工电子示范实验中心资助项目(2008SFZX30)