摘要
通过对指令系统的分析,提出了一种可根据用户提供的机器指令格式、CPU的硬件结构以及操作数寻址方式等信息,自动构造不同的汇编程序的方法,阐述了该方法的设计思想和程序实现。通过该方法生成的汇编程序可正确地完成汇编源程序到目标程序的翻译过程,自动化程度高,提高了软件的生产效率,可用于微机系统汇编程序的自动构造。
By analyzing instruction sets, a method to generate different assemblers according to the information of machine instruction format, CPU hardware structure and operand addressing mode is proposed. The design and program implementation of the method is presented in detail. The assemblers generated with this method translate assemble language into machine language correctly. The automatic degree of the method is relatively high. It can advance the efficiency of software-production efficiency and can be used to generator assembles of microcomputer system.
出处
《计算机工程与设计》
CSCD
北大核心
2006年第20期3887-3889,3893,共4页
Computer Engineering and Design
关键词
汇编语言
汇编程序
机器语言
指令
寻址方式
assembler language
assembler
machine language
instruction
addressing mode