请编制程序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
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.