文件名称:IBM-PC-programanswer
介绍说明--下载内容均来自于网络,请自行研究使用
汇 编 语 言 实 验
实验一:分支程序设计
(1)试比较字数组array中的三个数,并根据比较结果在终端上显示如下信息:
如果三个数都不相等则显示0;
如果三个数有两个相等则显示1;
如果三个数都相等则显示2。
(2)试根据DL寄存器中哪一位为1(从低位到高位)把程序转移到8个不同的程序分支中去。(8个程序分支可设计成显示相应的数据)
实验二:循环程序设计
有一个首地址为array的10个字数组,用简单排序法使该数组中的数按照从小到大的次序存放。
实验三: 子程序设计
将BUF开始的10个单元中的二进制数分别转换成两位十六进制数的
ASCII码,在屏幕上显示出来。要求码型转换通过子程序HEXAC实现,在转换过程中,通过子程序DISP实现显示。
实验四:中断程序设计
编写一个中断处理程序,要求在主程序运行过程中,每隔10秒响铃一次,同时在屏幕上显示信息“The bell is ring”。
-Experimental assembly language
Experiment I: Program Design Branch
(1) Let us compare the number of words in groups of three the number of array, and in accordance with the results of the comparison showed that in the terminal the following information:
If not equal to the number three showed 0
If there are two equivalent number three showed 1
If the number of all three showed the same 2.
(2) test based on a DL which register to 1 (from low to high) the processes to eight different procedures to branch. (8 program branches can be designed to show the corresponding data)
Experiment II: cycle programming
Address of an array of the first 10 words group, with a simple method to sort the array in accordance with the number of the order from small to large storage.
Experiment III: Subroutine Design
The beginning of the BUF in the 10 units were converted to binary hexadecimal number two
ASCII code is displayed o
实验一:分支程序设计
(1)试比较字数组array中的三个数,并根据比较结果在终端上显示如下信息:
如果三个数都不相等则显示0;
如果三个数有两个相等则显示1;
如果三个数都相等则显示2。
(2)试根据DL寄存器中哪一位为1(从低位到高位)把程序转移到8个不同的程序分支中去。(8个程序分支可设计成显示相应的数据)
实验二:循环程序设计
有一个首地址为array的10个字数组,用简单排序法使该数组中的数按照从小到大的次序存放。
实验三: 子程序设计
将BUF开始的10个单元中的二进制数分别转换成两位十六进制数的
ASCII码,在屏幕上显示出来。要求码型转换通过子程序HEXAC实现,在转换过程中,通过子程序DISP实现显示。
实验四:中断程序设计
编写一个中断处理程序,要求在主程序运行过程中,每隔10秒响铃一次,同时在屏幕上显示信息“The bell is ring”。
-Experimental assembly language
Experiment I: Program Design Branch
(1) Let us compare the number of words in groups of three the number of array, and in accordance with the results of the comparison showed that in the terminal the following information:
If not equal to the number three showed 0
If there are two equivalent number three showed 1
If the number of all three showed the same 2.
(2) test based on a DL which register to 1 (from low to high) the processes to eight different procedures to branch. (8 program branches can be designed to show the corresponding data)
Experiment II: cycle programming
Address of an array of the first 10 words group, with a simple method to sort the array in accordance with the number of the order from small to large storage.
Experiment III: Subroutine Design
The beginning of the BUF in the 10 units were converted to binary hexadecimal number two
ASCII code is displayed o
(系统自动生成,下载前可以参看下载内容)
下载文件列表
实验答案
........\汇编实验报告一.doc
........\汇编实验报告三.doc
........\汇编实验报告二.doc
........\汇编实验报告四.doc
汇编实验.doc
........\汇编实验报告一.doc
........\汇编实验报告三.doc
........\汇编实验报告二.doc
........\汇编实验报告四.doc
汇编实验.doc