皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
综合实验 :用从网上下载 8086 汇编模拟工具 (Emu8086) v3.07 绿色汉化版调试书本中的 仔细阅读案例 3.18 ,输出案例 3.9 中的最大值和最小值。 将3.18程序作为3.19的一个子程序,利用3.18将3.9中的最大值和最小值输出。 ;========================================================= ; 文件名 : wj0309.asm ; 功能描述 : 求数组元素的最大值和最小值。 ;========================================================= .model small .stack .data array dw 10 ; 假设一个数组,其中头个数据 10 表示元素个数 dw -3,0,20,900,587,-632,777,234,-34,-56 ; 这是一个有符号字量元素组成的数组 maxay dw ? ; 存放最大值 minay dw ? ; 存放最小值 .code start: mov ax,@data mov ds,ax lea si,array mov cx,[si] ; 取得元素个数 dec cx ; 减 1 后是循环次数 add si,2 mov ax,[si] ; 取出第一个元素给 AX , AX 用于暂存最大值 mov bx,ax ; 取出第一个元素给 BX , BX 用于暂存最小值 maxck: add si,2 cmp [si],ax ; 与下一个数据比较 jle minck mov ax,[si] ;AX 取得更大的数据 jmp next minck: cmp [si],bx jge next mov bx,[si] ;BX 取得更小的数据 next: loop maxck ; 计数循环 mov maxay,ax ; 保存最大值 mov minay,bx ; 保存最小值 这里调用3.18子程序输出最大值 这里调用3.18子程序输出最小值 mov ax,4c00h int 21h 这里放参考3.18修改后的输出一个有符合十进制数的子程序 end start 将屏幕上输出的最大值和最小值结果截图上传(注意数据段需要做修改)
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】Why do older students change their friendships?
A.
They don’t like to be friends of the same race.
B.
They prefer to make friends with similar people.
C.
They become confused with their own identity.
D.
They want to be trusted and respected by friends.
【简答题】仔细阅读:Why do some people live to be older than others? You know the standard explanations: keepingPassage Two(2016年6月大学英语四级卷1真题及答案) Questions 51 to 55 are based on the following passage. Why do some pe...
【单选题】Why do older students change their friendships?
A.
They don’t like to be friends of the same race.
B.
They prefer to make friends with similar people.
C.
They become confused with their own identity.
D.
They want to be trusted and respected by friends.
【单选题】矿砂船的双层底比其他船高,其目的是:
A.
提高船舶重心
B.
便于装卸
C.
增加压载舱容量
D.
增加船体强度
【单选题】不属于下丘脑调节肽的下列激素是( )
A.
促甲状腺激素释放激素
B.
B、抗尿激素
C.
促性腺激素释放激素
D.
生长抑素
E.
促肾上腺皮质激素释放激素
【单选题】Why do older people need to understand the ideas of young people according to the passage?
A.
They are older than young people.
B.
The young people will soon be in charge of the nation.
C.
The students today have strong opinions.
D.
The youth’s ideas are sometimes wrong.
【单选题】Why do older students change their friendships?
A.
They don’t like to be friends of the same race.
B.
They become confused with their own identity.
C.
They prefer to make friends with similar people.
D.
They want to be trusted and respected by friends.
【单选题】矿砂船的双层底比其他船高,其目的是________。
A.
提高船舶重心
B.
便于装卸
C.
增加压载舱容量
D.
以上都是
【单选题】矿砂船双层底设计得比其他船高的目的是:
A.
增加船体强度
B.
便于装卸
C.
提高船舶重心
D.
增加压载舱容量。
【单选题】矿砂船双层底设计得比其他船高的目的是:
A.
提高船舶重心
B.
便于装卸
C.
增加压载舱容量
D.
增加船体强度
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题