论文部分内容阅读
四、Z80汇编语言程序设计 当运用微型机来解决控制、数据处理或科学计算等具体问题时,就要求微型机按照我们设计的一系列指令来工作,这个设计就称为程序设计,也叫做编写程序,简称编程。这项工作要求使用者不仅了解硬件,而且还要熟悉机器的软件。 用什么语言进行程序设计呢?可供我们选择的有机器语言、汇编语言和高级语言。用机器语言 (二进制机器码)来编程是困难的,它既不便于记忆又不便于修改,因此人们用汇编语言来代替它。高级语言使用较方便、编程效率也较高,它的一个语句相当于汇编语言的许多条语句,但它的执行速度较汇编程序慢,占用的内存也多。汇编语言在微型机中被普遍使用,一方面是因为机器的系统程序要用它来编写,另一方面,由于它速度高,占用内存少,实现控制更方便,所以在实时控制中被广泛
Fourth, Z80 assembly language programming When using the microcomputer to solve the control, data processing or scientific computing and other specific issues, it requires the microcomputer in accordance with the design of a series of instructions to work, this design is called programming, also known as the preparation Program, referred to as programming. This work requires users not only to understand the hardware, but also to be familiar with the machine’s software. What languages are used for programming? Available in a choice of machine language, assembly language and high-level language. Programming in machine language (binary machine code) is difficult because it is neither easy to remember nor easy to modify, so people use assembly language instead of it. High-level language is more convenient to use and has higher programming efficiency. One of its statements is equivalent to many statements in assembly language. However, it executes slower and costs more memory than the assembler. Assembly language is commonly used in microcomputers, on the one hand because the machine’s system program to use it to write, on the other hand, due to its high speed, less memory, to achieve more convenient control, so in real-time control is widely