所属分类:
汇编语言
开发工具:WINDOWS
文件大小:2KB
下载次数:0
上传日期:2019-12-26 15:25:32
说明: 自己写的汇编冒泡排序程序,涉及了数字的输入、排序、相加和找出负数。
具体实现:
1. 从键盘随机输入十个数据,统计其中负数的个数,并在屏幕上显示出来;
2. 求出这十个数的总和, 存入数据段SUM 单元,并在屏幕上显示出来;
3. * 将这些数从小到大排序,存入 ORDER 为首址的存储区域,并在屏幕上显示出来。
4.** 编一跳转表,按键1,2,3,分别执行上述三种操作。
(The compilation bubble sort, written by myself, involves the input, sorting, adding, and finding negative numbers.
Specific implementation:
1. Enter ten data randomly from the keyboard, count the number of negative numbers, and display them on the screen;
2. Find the sum of these ten numbers, store the data segment SUM unit, and display it on the screen;
3. Sort these numbers from small to large, store in the storage area where ORDER is the first address, and display them on the screen.
4. Make a jump table, key s1, 2, 3, perform the above three operations.)
文件列表:
3.asm, 20369 , 2019-12-09