皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
请编制程序PROG1.ASM,其功能是:以逻辑尺L变量对内存中连续存放着16个字的数进行去高字节操作:当L的i位为1则将第i数据的高字节置为全0,当L的i位为0则第i数据不变。将处理的结果存入RESULT指示的内存区。 例如: 设L=0005H 源数:1111H,2222H,3333H,4444H,5555H,6666H… 结果:0011H,2222H,0033H,4444H,5555H,6666H… 部分程序已经给出,其中原始数据由过程LOAD从文件INPUTl.DAT中读入SOURCE开始的内存元中,运算结果要求从RESULT开始存放,由过程SAVE保存到文件OUTPUT1.DAT中。 填空BEGIN和END之间已给出的源程序使其完整(空白已用横线标出,每行空白一般只需一条指令,但采用功能相当的多条指令也可),或删除BEGIN和END之间原有的代码并自行编程来完成要求的功能。 对程序必须进行汇编,并与IO.OBJ链接产生执行文件,最终运行程序产生结果。调试中若发现整个程序中存在错误之处,请加以修改。 PROG1.ASM文件内容如下: EXTRN LOAD:FAR,SAVE:FAR N EQU 16 STAC SEGMENT STACK DB 128 DUP(?) STAC ENDS DATA SEGMENT L DW ? SOURCE DW N DUP(?) RESULT DW N DUP(0) NAME0 DB 'INPUT1.DAT',0 NAME1 DB 'OUTPUT1.DAT',0 DATA ENDS CODE SEGMENT ASSUME CS:CODE,DS:DATA,SS:STAC START PROC FAR PUSH DS XOR AX,AX PUSH AX MOV AX,DATA MOV DS,AX LEA DX,L ;数据区起始地址 LEA SI,NAMEO ;原始数据文件名 MOV CX,2*(N+1) ;字节数 CALL LOAD ;从input1.dat文件中读取数据 ;* * * * BECIN * * * * LEA SI,SOURCE _______ MOV CX,N MOV DX,_____ LO: MOV AX,[SI] _____ L,DX _____ STORE NOT AX STORE: MOV [DI],AX ADD DI,2 ADD SI,2 LOOP LO ;* * * * END * * * * LEA DX,RES
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】肺炎时可减轻胸痛的最常用体位是
A.
患侧卧位
B.
仰卧位
C.
坐位
D.
健侧卧位
E.
俯卧位
【简答题】阅读理解。 Advertising informs consumers about new products available on the market. It gives us information about everything from shampoo to tooth-paste to computers and cars. But there is one series prob...
【简答题】阅读理解。 Advertising gives useful information about which products to buy. But modern advertising gives more than news 1 products and services .Today's advertisements, or ads, try to get consumers to buy...
【简答题】Advertising gives useful information about which products to buy. But modern advertising does more than gives news about products and services. Today’s advertisements, or ads, try to get consumers to ...
【多选题】(多选)如图所示,在半径为R的圆形区域内充满磁感应强度为B的匀强磁场,MN是一竖直放置的感光板.从圆形磁场最高点P以速度v垂直磁场正对着圆心O射入带正电的粒子,且粒子所带电荷量为q、质量为m,不考虑粒子重力,关于粒子的运动,以下说法正确的是( )
A.
粒子在磁场中通过的弧长越长,运动时间也越长
B.
射出磁场的粒子其出射方向的反向延长线也一定过圆心O
C.
射出磁场的粒子一定能垂直打在MN上
D.
只要速度满足v=,入射的粒子出射后一定垂直打在MN上
【单选题】肺炎时可减轻胸痛的最常用体位是
A.
俯卧位
B.
仰卧位
C.
坐位
D.
健侧卧位
E.
患侧卧位
【简答题】A.It gives too much music. B.It has too many programs for advertising. C.its noise does harm to our ears. D.It changes our daily live.
【简答题】Advertising gives useful information about which products to buy. But modern advertising gives more than news 16 products and services .Today’s advertisements, or ads, try to get consumers to buy cert...
【单选题】(Advertising) gives useful information about (which) (products) to (buying).
A.
Advertising
B.
which
C.
products
D.
buying
【简答题】D Advertising gives useful information about which products to buy. But modern advertising does more than gives news about products and services. Today’s advertisements, or ads, try to get consumers t...
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题