题目内容

请编制程序PROG1.ASM,其功能是:以SOURCE开始的内存区域中存放着N个字节的有符号数。现找出最大的数,结果存放到RESULT指示的单元,其后存放原N个数逻辑取反后的值。 例如: 数据为:09H,7EH,89H,F3H,17H,……,67H(N个数据) 结果为:7EH(最大数),F6H,81H,76H,0CH,E8H,……,98H(原来N个数的逻辑反) 部分程序已给出,其中原始数据由过程LOAD从文件INPUT1.DAT中读入SOURCE开始的内存单元中。运算结果要求从RESULT开始存放,由过程SAVE保存到文件 OUTPUT1.DAT中。 填空BEGIN和END之间已给出的源程序使其完整(空白已用横线标出,每行空白一般只需一条指令,但采用功能相当的多条指令亦可),或删除BEGIN和END之间原有的代码并自行编程来完成要求的功能。 对程序必须进行汇编,并与IO.OBJ链接产生PROG1.EXE执行文件,最终运行程序产生结果(无结果或结果不正确者均不得分)。调试中若发现整个程序中存在错误之处,请加以修改。 试题程序: EXTRN LOAD:FAR, SAVE:FAR N EQU 19 STAC SEGMENT STACK DB 128 DUP () STAC ENDS DATA SEGMENT SOURCE DB N DUP(0) RESULT DB N+1 DUP(0) NAME0 DB ’INPUT1. DAT’,0 NAME1 DB ’OUTPUT1. DAT’,0 DATA ENDS CODE SEGMENT ASSUME CS:CODE, DS:DATA,ES:DATA, SS:STAC START PROC FAR PUSH DS XOR AX,AX PUSH AX MOV AX,DATA MOV DS,AX MOV ES,AX LEA DX,SOURCE ; 数据区起始地址 LEA SI,NAME0 ; 原始数据文件名 MOV CX,N ; 字节数 CALL LOAD ; 从INPUT1.DAT中读取数据 ;**** BEGIN **** (1) SI,SOURCE MOV BX,OFFSET SOURCE LEA DI,RESULT MAXD1: MOV CX,N MOV DX,CX MOV AL, (2) MAXD2: INC BX (3) AL,[BX] (4) MOV AL, [BX] MAXD3: DEC DX JNZ (5) MOV [DI], AL INC DI CLD MREP: LODSB NOT AL (6) LOOP MREP ; **** END **** LEA DX,RESULT ; 结果数据区首址 LEA SI,NAME1 ; 结果文件名起始地址 MOV CX,N+1 ; 字节数 CALL SAVE ; 保存结果到OUTPUT1.DAT文件中 RET START ENDP CODE ENDS END START

查看答案
更多问题

进行性血胸表现为

A. 反常呼吸运动
B. 呼吸时纵隔左右扑动
C. 静脉压升高,心搏微弱,动脉压降低
D. 胸膜腔引流血量>200ml/h,连续3小时

淡漠型甲亢

A. 甲状腺疼痛
B. 甲状腺触诊质硬
C. 多见于老年人
D. 宜手术治疗

In a recent film set in seventeenth-century Europe, the hero is seen doing the crawl, a swimming stroke not known in Europe before the 1920’s. However; since moviegoers obviously are not experts in the history of swimming strokes, for most of the film’s audience this blunder clearly cannot have interfered with whatever sense of historical authenticity the film otherwise achieved. Which of the following, if true, most seriously weakens the argument given

A. The film was widely praised for being historically plausible, even though it portrayed many events that were not historically attested.
B. The scene that shows the film’s hero doing the crawl is a rescue scene pivotal to the film’s action, and parts of it are even shown a second time, in a flashback.
C. Makers of historical films, even of those set as recently as the nineteenth century, routinely strike compromises between historical authenticity and the need to keep their material accessible to a modern audience, as in the actors’ speech patterns.
D. The crawl that European swimmers used in the 1920’s was much less efficient and more awkward-looking than the crawl that is currently taught.
E. A slightly earlier film featuring an eighteenth century sea battle in Europe was ridiculed in numerous popular reviews for the historical lapse of showing a sailor doing the crawl in swimming to safety.

Returning to Science Teresa Garrett was working part-time as a biochemistry postdoc (博士后). She had an infant at home, and she was miserable. She and her husband were considering having a second child. She didn’t like leaving her daughter with a daycare provider, and she wondered if her slim income justified the expense of child-care. She decided to stay home full time. It was a lonely but practical decision, she says. She hadn’t ruled out the possibility but she did not expect to return to science: After all, the conventional wisdom would equate several years of parenting leave with the end of a research career. Garrett eventually had two daughters and spent their early years at home. The challenge of managing a science career and personal and family obligations is not a new issue, particularly for women. In a career where productivity and publications define your value, can you take a couple of years off and then make a successful return When you do, will employers trust your devotion to your job For Garrett, the answer to both questions was "Yes". First, she found a short-term teaching tutor at Duke University, the institution where she had done her Ph. D. And then Christian Raetz, who had been her Ph. D. adviser, offered her a postdoc. The timing was perfect: She was ready to start a more regular work schedule, and her husband was interested in starting a business. Today, she is a chemistry professor at Vassar College. Garrett credits Raetz both for his faith in her abilities and his willingness to judge her contributions on quality and productivity and not the number of hours she spent in the laboratory. "People are always shocked to know that you can take time off and come back," she says.Returning to research after an extended personal leave is possible, but it may not be straightforward. Progress can be slow and there may be some fallout from a break. The path back doesn’t come with a road map or a timeline. Your reentry will have a different rhythm than your initial approach because this time you have to balance your career with the needs of a family. The uncertainty can make you feel isolated and alone. But if you are persistent and take advantage of the resources that are available, you can get it done. Stepping Sideways After time away from the work force, it’s particularly easy to underestimate your value as a scientist and--hence--to take one or more backward steps. Don’t, says Ruth Ross, who nearly made that mistake after spending 4 years at home with her children. A Ph. D. pharmacologist with industry experience, she applied for a technician job at the University of Aberdeen in the United Kingdom as she planned her return to science. She would have taken the job if it had been offered, she says, but "that probably would have been a bad career move". As it turned out, the university decided she was over-qualified. Instead of taking a step back, take a step sideways: If you left a postdoc, return to a postdoc, perhaps with a special career reentry fellowship. A faculty member at Aberdeen encouraged Ross to apply for a newly established career reentry fellowship from the Well come Trust. Funding from that organization supported her postdoctoral research until the university hired her into a faculty position in 2002. After 2 years at home with her son and twin daughters followed by 3 years searching for project management jobs in the biotech industry, biochemist Pla Abola got wind of an opening at the Molecular Sciences Institute (MSI). An MSI staff scientist needed skills like hers but lacked money, so the two applied jointly for an NIH career reentry supplement. She’s now a protein biochemist and grant writer at Prosetta Bioconformatics. Independence and Flexibility Instead of stepping backward or sideways, physicist Shireen Adenwalla took a step forward. Instead of taking another postdoc, she set up an independent research program on soft money. Early in her career, Adenwalla took 15 months off, caring for her first child and then looking for another postdoc. When she and her physicist husband decided to move to the University of Nebraska, Lincoln--he had accepted a tenure track position Adenwalla turned down postdoc opportunities. Instead she arranged a visiting faculty position, followed by a post as a research assistant professor. "I think that was a very smart thing," she says today. "Establishing an independent research program is very important." Her starting salary was just $15 000, and she got just $ 5 000 in start-up assistance. She borrowed equipment, taught courses, took on graduate students, and published her research. She had a lab and an office, but both got moved around-her lab three times, her office twice. Adenwalla missed having real start-up money, her own equipment, and the institutional investment that comes with a tenure-track position. On the other hand, she was her own boss, so she was able to take 6 months off when she had her second child and work part time for a while after her third child was born. Eventually she was hired to a tenure-track post. Flexible or part-time hours can smooth the transition back into tile scientific work force. Some reentry fellowships specify a part-time option and most are accommodating, but even if you don’t have a fellowship you can ask for a work schedule that meets your needs. Ross, for example, took advantage of the part-time provision of the Well come Trust Fellowship. When Garrett took the position on the Lipid Maps grant, she negotiated a 30-hour-a-week schedule. Patience: an Essential Virtue Two months before physicist Marija Nikolic-Jaric’s scheduled dissertation defense at Simon Fraser University, her husband was diagnosed with an aggressive brain tumor. Over the next 17 months, she focused on her husband and his cancer treatments. After his death, she moved with her little son to Winnipeg to be near family. She tried to jump-start her thesis project several times, the first in 1998, but she wasn’t ready yet and became discouraged. Eventually, she found the motivation to return. She started from the beginning, with a new approach. She finished her Ph. D. in 2008. Now a postdoc at the University of Manitoba, she has moved into a new research area-biomicrofluidics. This year, her work is supported by an M. Hildred Blewett Scholarship, a career reentry grant from the American Physical Society. Elizabeth Freeland, too, continues to work toward a permanent research position a decade after her return. When she followed her future husband to his postdoc at Brookhaven National Laboratory in Upton, New York, and subsequently to Chicago, Illinois, she wasn’t able to find a compatible research opportunity. Since then, she has cared for the couple’s two young children, taught part time, and found a few short-term research opportunities, some paid, others not. Like Nikolic-Jaric, Freeland is a physicist, and like that other physicists she switched fields. Freeland moved from condensed matter theory to high-energy physics. She scraped together two one-year postdoctoral grants, the first from the American Association of University Women and the second is a Blewett Scholarship. Unable to find a permanent position locally, in September she started a one-year postdoc at Washington University in St Louis. The location is challenging, she says, but she is encouraged by the support of her mentors (导师). And because her work is theoretical, she can spend alternate weeks at home with her husband and school-age children. It’s a great research opportunity, she says, one she hopes will someday yield a job closer to her family. She also runs a Web site for physicists navigating career breaks. Finding Your Own Way Back Though students sometimes see her as a role model, Adenwalla cautions that what worked for her might not be the best solution for others. "You have to find what’s right for you," she says, and ignore those with different circumstances and needs. Her own journey was a tradeoff, she says. On the plus side, she was able to pick her children up at school every day. On the minus side, she says, "there was a fear inside me that 1 would never make it." Garrett tells everyone about her journey, even noting it on her Vassar Web site. "Both young women and young men who are coming up through their career path need to know about the different ways that you can have a good and satisfying career in science." According to the passage, Ruth Ross almost committed the mistake that ______.

A. she underestimated her ability
B. she took a step back
C. she spent 4 years at home
D. she took a step sideways

答案查题题库