题目内容

请编制程序,其功能是:内存中连续存放着16个二进制字节数,在原16个数的第4和第5个数之间插入00H,在原16个数的第8和第9个数之间插入55H,在原16个数的第12和第13个数之间插入AAH,在原16个数的最后加入FFH。将按上述方法插入4个字节数后得到的20个字节数存入内存中。
例如:
内存中有:10H,20H,30H,40H,50H,…,8FH(共16个字节)
结果为: 10H,20H,30H,40H,00H,50H,…,8FH,FFH(共20个字节)
部分程序已给出,其中原始数据由过程LOAD从文件INPUT1.DAT中读入SOURCE开始的内存单元中。运算结果要求从 RESULT开始存放,由过程SAVE保存到文件OUTPUT1.DAT中。
请填空BEGIN和END之间已经给出的源程序使其完整,需填空处已经用横线标出,每个空白一般只需一条指令,也可以填入功能相当的多条指令,或删去BEGIN和END之间原有的代码并自行编程来完成所要求的功能。
对程序必须进行汇编,并与IO.OBJ链接产生可执行文件,最终运行程序产生结果。调试中若发现整个程序中存在错误之处,请加以修改。
[试题程序]
EXTRN LOAD:FAR,SAVE:FAR
N EQU 16
STAC SEGMENT STACK
DB 128 DUP ()
STAC ENDS
DATA SEGMENT
SOURCE DB N DUP ()
INDATA DB 0FFH,0AAH,55H,00H
RESULT DB N+4 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
EA DX,SOURCE ; 数据区起始地址
OV CX,N ; 字节数
ALL LOAD ; 从'INPUT1.DAT'中读取数据
******** BEGIN ********
(1)
OV DI,0
OV CX,4
OV BX,4
CHAN: (2)
OV RESULT[DI],AH
(3)
NC DI
EC CX
Z INSER1
MP CHAN
INSER1: PUSH SI
MOV SI,BX
MOV AX,WORD PTR INDATA[SI-2]
MOV RESULT [DI], (4)
DEC BX
JZ (5)
MOV CX,04H
(6)
INC (7)
JMP CHAN
EXIT: &

查看答案
更多问题

We use them when we are watching TV.

______ was not discovered until 1961, and the U.S. Food and Drug Administration has since

&8226;Read the article below about service production and the questions on the opposite page.
&8226;For each question 13-18, mark one letter (A, B, C or D) on your Answer Sheet for the answer you choose.
The importance of satisfaction and morale
Broadly speaking, job satisfaction is the degree of enjoyment that people derive from performing their jobs. If people enjoy their work, they are relatively satisfied; if they do not enjoy their work, they are relatively dissatisfied. In turn, satisfied employees are likely to have high morale -- the overall attitude that employees have toward their workplace. Morale reflects the degree to which they perceive that their needs are being met by their jobs. It is determined by a variety of factors, including job satisfaction and satisfaction with such things as pay benefits, coworkers, and promotion opportunities.
(8) Some large firms, for example, have instituted companywide programs designed specifically to address employees' needs. Employees at SAS institute, a large software development company in North Carolina, enjoy private offices, a free health clinic, two on-site day-care centers, flexible work hours with 35-hour work weeks, a company-subsidized cafeteria, and year-end bonuses and profit sharing. Managers at Hyatt Hotels report that conducting frequent surveys of employee attitudes, soliciting employee input, and -- most important -- acting on that input give their company an edge in recruiting and retaining productive workers. (9) For example, First Tennessee, a midsize regional bank, believes that work and family are so closely related that family considerations should enter into job design. Thus, it offers such benefits as on-site child care.
When workers are satisfied and morale is high, the organization benefits in many ways. Compared with dissatisfied workers, for example; satisfied employees are more committed and loyal. (10) In addition, they tend to have fewer grievances and engage in fewer negative behaviors (complaining, deliberately slowing their work pace, and so forth) than dissatisfied counterparts. Finally, satisfied workers tend not only to come to work every day but also to remain with the organization. By promoting satisfaction and morale, then, management is working to ensure more efficient operations.
Conversely, the costs of dissatisfaction and poor morale are high. Dissatisfied workers are far more likely to be absent for minor illnesses, personal reasons; or a general disinclination to go to work. (11) High levels of turnover have many negative consequences, including the disruption of production schedules, high retraining costs and decreased productivity.
(12) The results of one recent study shows that companies with the highest levels of satisfaction and morale significantly outperformed the 300 largest US companies over both 5 and 10 years. Of course, many other factors contributed to the performance of both sets of companies, but these differences nevertheless can not be ignored.
A Low morale may also result in high turnover -- the ratio of newly hired to currently employed workers.
B In turn, satisfied employees are likely to have high morale -- the overall attitude that employees have toward their workplace.
C In fact, evidence suggests that job satisfaction and employee morale may directly affect a company's performance.
D Such employees are more likely to work hard and to make useful contributions to the organization.
E Managers of smaller businesses realize that the personal touch can reap big benefits in employee morale and even devotion.
F Companies can involve employee morale and job satisfaction in a variety of ways.
G In

舒尔茨认为农业劳动人力成本的提高是农业劳动力转移的条件。()

答案查题题库