题目内容

请编制程序PROG1.ASM,其功能是:内存中从SOURCE开始连续存放着20个字(WORD),试统计每个字中二进制位为1的个数。结果以字节存放。例如:内存中有139CH,518CH,1489H,…,结果为07H,08H,05H,….
部分程序已给出,其中原始数据由过程LOAD从文件INPUT1.DAT中读入SOURCE开始的内存单元中。运算结果要求从RESULT开始存放,由过程SAVE保存到文件OUTPUT1.DAT中。
填空BEGIN和END之间已给出的源程序使其完整(空白已用横线标出,每行空白一般只需一条指令,但采用功能相当的多条指令亦可),或删除BEGIN和END之间原有的代码并自行编程来完成要求的功能。
对程序必须进行汇编,并与IO.OBJ连接生成PROG1.EXE执行文件,最终运行程序产生结果 (无结果或结果不正确者均不得分)。
注意:源程序非填空部分可能存在个别非法指令,考生阅读源程序或调试该程序时若发现这些非法指令,请加以修改!
EXTRN LOAD:FAR,SAVE:FAR
N EQU 20
STAC SEGMENT STACK
DB 128 DUP()
STAC ENDS
DATA SEGMENT
SOURCE DW N DUP()
RESULT DB NDUP(0)
NAMEO 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,SOURCE ;数据区起始地址
LEA S1,NAMEO ;原始数据文件名
MOV CX,N * 2 ;字节数
CALL LOAD ;从INPUT1.DAT中读取数据
; * * * * BEGIN * * * *
LEA SI,SOURCE
LEA DI,RESULT
CLD
MOV DX,N
LOOP0: LODS _____
_______
MOV CX,16
LOOP1: ROL AX,1
J_____ NEXT
INC BX
NEXT: LOOP _____
MOV [D1],BL
______
DEC DX
JNZ LOOP0
; * * * * END * * * *
LEA DX,RESUIT ;结果数据区首址
LEA SI,NAME1 ;结果文件名
&nbs

查看答案
更多问题

— Read the on the opposite page about an awards scheme for companies.
— Choose the best sentence from below to fill each of the gaps.
— For each gap 8 - 12, mark one letter (A - G) on your Answer Sheet.
— Do not use any letter more than once.
— There is an example at the beginning, (0).
The region's best smaller companies
Once again, readers of this magazine have the chance to vote for the region's best companies. (0)The awards will be presented at a dinner in Birmingham on May 17.
The pattern established in the first year, of awards for Best Established Company, Best New Company and Best Entrepreneur, will of course continue. However this year sees a new category, that of Best Communication with Investors. 【8】______
The Established Company of the Year will be one whose success has lasted for more than just a couple of months or years. Its share price will be performing above the average for its sector, but that is not the only measurement which will be taken into account. 【9】______ Above all, the winner will be professionally managed, in a way that deals equally well with good and bad trading conditions.
The New Company of the Year 'will have gone public last year, but will already have shown its growth and management qualities. 【10】______ In fact three early winners have already been successful in this second category, as well.
The Entrepreneur of the Year will be someone with a proven track record of expertise in setting up and providing leadership to one or possibly more businesses. He or she will have created an organisation that can deal with the demands placed on it as a public company. 【11】______ The winner will have maintained a balance between that original energy and the need to adapt as the company grows.
In our new category, Best Communication with Investors, the winning company will show that it is engaging in two-way dialogue with both actual and potential investors. 【12】______ All of these communication channels will be carefully tailored for the intended audience. In addition, the company is likely to distribute press releases by electronic means, to maximise its opportunities for publicity.
Nominations for awards were invited several months ago, and reduced by the judges to a shortlist of three in each category. The shortlisted companies are described below, together with details of how to vote. Please get your vote to us no later than 31 March.

A. It will, in effect, be able to demonstrate that it can go on to become an Established Company of the Year before long,
B. In order to win, the company will have achieved success in both spheres, and have the evidence to prove it.
C. To achieve this, it will be using a variety of means, including the annual report, presentations, a dedicated website and attendance at specialised exhibitions.
D. The judges will also consider the degree to which the company has a well planned and soundly financed strategy for its growth and development.
E. At the same time, this structure must not stifle the spirit that led to the company's initial SUCCESS.
F. The innovation has been made in order to recognise the increasingly important part which this factor plays in a company's success.
G. The competition, which is now in its tenth year, is designed to encourage excellence in smaller public companies based in this area.

著名画家A某1954年创作完成了《武松打虎》组画,1957年由人民美术出版社出版发行,广为流传。A某于1983年去世,有继承人B某。1980年C酒厂将该组画中的第ll幅修改后,作为瓶贴和外包装装潢使用在其生产的景阳冈陈酿系列白酒酒瓶上。1989年C酒厂又以该组画修改后的图案向国家商标局申请商标注册获准。1990年C酒厂参加了首届中国酒文化博览会。1995年该厂又在人民大会堂举办了“景阳冈陈酿品评会”。此时B某从国外归来得知侵权事实,协商未果,遂于1996年7月起诉,诉称C酒厂未经A某许可,A某去世后未经B某许可,使用A某的美术作品,侵犯了A、B的著作权,并以“侵犯他人合法在先权”为由,向商标评审委员会申请撤销C酒厂的《武松打虎》注册商标。C酒厂辩称:本厂从1980年开始使用该商标,曾取得A某口头许可,退一步讲,即使未得A、B许可,但一直在宣传,还取得商标注册,核准注册公告日起B某应知侵权,现已超过诉讼时效。
问题:
(1)C酒厂是否侵权?为什么?
(2)B某起诉是否超过诉讼时效?为什么?

两解一处理(名词解释)

若有以下程序:
include <iostream>
using namespace std;
int main()
{
char str[10];
cin>>str;
cout<< str<<end1;
return 0;
}
当输入为:
This is a program!
那么执行程序后的输出结果是【 】。

答案查题题库