请编制程序,其功能是:内存中有一个由16个十六位二进制数组成的数组(SOURCE)和一个字变量L。试将L作为逻辑尺对数组SOURCE进行下列处理:如L的第i位为0,则数组的第i个数不变:如L的第i位为1,则数纽的第i个数按位取反。字L的位序从低到高依次为0至15,数组下标依次从0到15。 例如:L=0009H 数组为:139CH,89C6H,5437H,8819H,… 变换为:EC63H,89C6H,5437H,77E6H,… 部分程序已给出,其中原始数据由过程LOAD从文件INPUT.DAT中读入(L在前,SOURCE在后)。运算结果要求从RESULT开始存放,由过程SAVE保存到文件OUTPUT.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 L DW SOURCE DW N DUP() RESULT DW N DUP(0) NAME0 DB ’INPUT.DAT’,0 NAME1 DB ’OUTPUT.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,NANE0 ;原女合数据文件名 MOV CX,2*(N+1) ;字节数 CALL LOAD ;从’INPUT.DAT’中读取数据 ; ******** BEGIN ************ LEA SI, SOURCE MOV CX,N MOV DX, L0: MOV AX, [SI] L,DXSTORE NOT AX STORE:MOV [DI],AX ADD DI,2 ADD SI,2 (5) LOOP L0 ; ******** END ******** LEA DX,RESULT ; 结果数据区首址 LEA SI,NAME1 ;结果文件名 MOV CX,2*N ;结果字节数 CALL SAVE ;保存结果到文件 RET START ENDP CODE ENDS END START
查看答案
What will customers do immediately after registering
A. Pay for one month in advance
Begin to lose weight
C. Provide personal information
D. Meet Ms. McMichaelson
Passage Three
A. When they were not willing to appear shy.
B. When they were not willing to be inspected by their leader.
C. When they were not willing to be examined about their uniform.
D. When they were not willing to be found dirty.
What is the main topic of the conversation
A. Designing a line of men’s clothing
B. Starting and maintaining a blog
C. Hiring new fashion models
D. Changing their marketing strategy
From: Sam GentryTo: Bridgette KuhnSubject: For the "Get to Know Us" section of the websiteHi Bridgette, I’ve been put in charge of building the "Get to Know Us" page on the new website, and I came up with the idea of including a personal photo and favorite quote for everyone. I’ve enlisted the help of Janet Derbish to collect this material, and she’s already spoken with more than 20 people. However, what she’s found is a lot of them don’t have any personal photos available that they’d like to post on the website. So, I thought that we might have a group photo shoot one day this week to collect images of everyone in the office. Someone mentioned to me that you have a degree in photojournalism, and I was wondering if you might be interested in taking charge of the shoot. Please let me know soon if you’re able to do this. - Sam From: Bridgette Kuhn To: Sam Gentry Subject: Re: For the "Get to Know Us" section of the website Hi Sam, What a great idea about posting photos of everyone on the new website! I think that will give it a real personal touch. To answer your question, though, I actually studied journalism in college, not photojournalism. In fact, the only camera I own is the one on my phone! So I don’t think I’m the best person to spearhead the photo shoot. But if you’re still looking for someone, I can recommend one of my colleagues here in the IT department: Jorge Morales. He is a gifted amateur photographer and runs an online shop in his spare time through which he sells his photos. His extension is 204 if you’d like to talk to him yourself, or I can have him call you. Also, I haven’t been contacted by Ms. Derbish yet, but I do have a personal photo that I wouldn’t mind contributing to the webpage, which I’ll attach to this email. And here is my favorite quote, by William James: "The art of being wise is knowing what to overlook." Let me know if you need anything else. - Bridgette How do Mr. Gentry and Ms. Kuhn probably know each other
A. Ms. Kuhn is Mr. Gentry’s IT client.
B. They are employees of the same company.
C. They went to the same university.
D. Mr. Gentry is an old friend of Ms. Kuhn.