1、 1 1 摘 要 汇编语言是面向机器的程序设计语言。 在汇编语合中, 用助记符代替操作码, 用地址符号或标号代替地址码。这样用符号代替机器语言的二进制码,就把机器 语言变成了汇编语言。 于是汇编语言亦称为符号语言。 使用汇编语言编写的程序, 机器不能直接识别,要由一种程序将汇编语言翻译成机器语言,这种起翻译作用 的程序叫汇编程序,汇编程序是系统软件中语言处理系统软件。 汇编语言直接同计算机的底层软件甚至硬件进行交互,它有如下一些优点: (1)能够直接访问与硬件相关的存储器或 I/O 端口; (2)能够不受编译器的限 制,对生成的二进制代码进行完全的控制; (3)能够对关键代码进行更准确的控 制
2、,避免因线程共同访问或者硬件设备共享引起的死锁; (4)能够根据特定的应 用对代码做最佳的优化,提高运行速度; (5)能够最大限度地发挥硬件的功能。 课题中应用汇编语言实现,充分发挥汇编语言的优点。设计中在实现自动 钟表的显示的基础上做了进一步的扩展。第一点:设计中应用软件走时的方式很 好的实现了在多种型号机器上运行;第二点:系统具有良好的出错检测程序,能 够适用较广的出错预警和修正;第三:系统中添加了很多实用性功能,像闹铃, 时间修正等;第四点,设计中充分考虑了程序执行的效率问题,并尽量减少 CPU 资源的使用。 关键词: 多种型号 出错检测 实用功能 效率 资源 2 2 Abstract
3、The assembler language is facing machine programming language. In assembler language close, use mnemonic instead of operation codes and in address symbols or label instead of address. So instead of machine language with symbols of binary code, machine language into the assembly language. So the asse
4、mbly language also called symbolic language. Use assembly language program, the machine cant direct identification, by a kind of program will assembly language into machine language, the translation of the role that assembler program, assembler system software is in language processing system softwa
5、re. Assembly language with the bottom of the computer directly software even hardware for interaction, it has the following some advantages: (1) able to directly access and hardware related memory or an I/O port; (2) can not be the compiler the limit, to generate the binary code for complete control
6、; (3) to code for key more accurate control, avoid the common thread visit or hardware equipment caused by sharing dead lock; (4) can according to the specific application of the optimization of the code do best, increase speed; (5) can maximize the function of the hardware. Projects are in the assembly language application implementation, give full play to the advantages of assembly language. Design in the realization of automatic watch the show based on the expansion of further. The first