题目内容

在用菜单编辑器设计菜单时,必须输入数据的项目是【 】。

查看答案
更多问题

编制一个程序,其实现的功能是:对一个数字采集系统采集的50个字节无符号数按算术平均数字滤波方法进行数字滤波,每5个数求一个平均数(含余数,其中低字节为商,高字节为余数),将10个平均值依次存入RESULT指示的内存区域。
例如:
原始采集数据:05H,07H,12H,08H,10H,09H,2EH,56H,48H,85H,65H,36H,45H……
则结果为: 0A04H,4003H……
部分程序已经给出,其中原始数据由过程LOAD从文件INPUT.DAT中读入以SOURCE开始的内存单元中。运算结果要求从RESULT开始的内存单元存放,由过程SAVE保存到文件OUTPUT.DAT中。
请填空BEGIN和END之间已给出的源程序使其完整,空白已经用横线标出,每行空白一般只需要一条指令,但采用功能相当的多条指令也行,考生也可以删除BEGIN和END之间原有的代码并自行编程来完成要求的功能。
对程序必须进行汇编,并与IO.OBJ链接产生可执行文件,最终运行程序产生结果。调试中若发现整个程序中存在错误之处,请加以修改。
【试题程序】
EXTRN LOAD:FAR,SAVE:FAR
N EQU 10
DSEG SEGMENT
SOURCE DB 6*N DUP()
RESULT DW N DUP(0)
NAME0 DB 'INPUT.DAT',0
NAME1 DB 'OUTPUT.DAT',0
DSEG ENDS
SSEG SEGMENT STACK
DB 256 DUP()
SSEG ENDS
CSEG SEGMENT
ASSUME CS:CSEG,DS:DSEG,SS:SSEG
START PROC FAR
PUSH DS
XOR AX,AX
PUSH AX
MOV AX,DSEG
MOV DS,AX
LEA DX,SOURCE
LEA SI,NAME0
MOV CX,6*N
CALL LOAD
;******** BEGIN ********
LEA SI,SOURCE
LEA DI,RESULT
MOV DX,N
AGAIN: SUB AX,AX
(1)
MOV CX,6
AGAIN1: MOV AX,[SI]
ADD BX,AL
INC SI
(2)
(3)
MOV CL,6
(4)
(5)
ADD DI,2
DEC DX
JNZ AGAIN
;******** END ********
LEA DX,RESULT
LEA SI,NAME1
MOV CX,N*2
CALL SAVE
RET
START ENDP
CSEG ENDS
END START

Every year, many foreign students go to America to study
English. Some of them will participate in a homestay program
and live with an American family. However, others will take a S1.______
different decision. They will live with friends from their own
country. I believe that if a foreign student looks at both possibilities,
he will decide to live with an American family. Even though
there are one or two drawbacks to the homestay way, there are far S2.______
more benefits.
In making his decision about how to live in the United
States, the foreign student is smart to consider one or two S3.______
disadvantages to live with an American family. First of all, he must
realize that he is going to feel homesick at first. Living in an
American home with people of other language and culture may S4.______
cause this feeling to increase. Also, the American family could
become very protective of him. They may ask him where he is
going, when he leaves home and when he will return. Despite of
these two disadvantages, there is a stronger argument in favor of S5.______
living with Americans.
By living in an American home, the student has an opportunity
to become familiar with American customs and culture. For
instance, he will learn the importance of family closeness. He
can see how the children communicate with their parents and how
the parents educate their children. He will not feel like a stranger
because the American family will help him adjusting to a new S6.______
life. In an American home, he can learn English fast. Family
members can help him with his homeworks. When he speaks S7.______
English, they can point out his errors. In this way, he can learn
English naturally.
Although there are some disadvantage to live with an American S8.______
family, there are heavier benefits. If the foreign student at S9.______
first realizes the value of learning about a new culture and improving
his English at the same time, he will find studying there a
very big experience. S10.______
【S1】

For this part, you are allowed to write a composition telling about your personal feeling

You read and write at it.

答案查题题库