问题 填空题

运行下面的汇编语言程序,在NUM内存单元中得到的结果是______。  DSEG   SEGMENT  DAT    DB       5,13,4,-2,-6,23,3,1,9,0  CNT    EQU       $-DAT-1  NUM    DB          DSEG   ENDS   SSEG   SEGMENT     STACK       DB       256 DUP(0)  SSEG   ENDS  CSEG   SEGMENT       ASSUME     DS:DSEGSS:SSEG,CS:CSEG  START:  MOV       AX,DSEG       MOV       DS,AX       MOV       SI,OFFSET DAT       MOV       CX,CNT       XOR       BL,BL  LP:   MOV       AL,[SI]       XOR       AL,AL[Si+1]       TEST      AL,80H     ;两个相邻字节的最高位相同吗       JNE       NEXT       INC       BL  NEXT:  INC       SI       LOOP      LP        MOV       NUM,BL       MOV       AH,4CH,       INT       21H  CSEG   ENDS       END       START

答案

参考答案:G

解析: 该程序的功能是判断数据区所有数据的正负连续性,如果两个相邻字节的元素符号不变,则BL加一,最后将结果放在NUM中。

阅读理解

A Christina from Spain

On the last day of the year, the 31st of December, people wait till 12 pm. Everybody must have 12 grapes(葡萄) to eat at midnight. At each sound of the clock, we must eat a group. But we can’t ever finish eating the grapes on time! Usually when people still have some grapes in their mouths, they look at each other and start to laugh. This tradition started in Spain long ago. One year, when there were a lot of grapes, the king of Spain decided to give grapes to everybody to eat on New Year’s Eve.

B Cordon from Britain

On New Year’s Day in Britain, people have parties. At 12 o’clock, the music stops, and we listen to the radio. On the radio we hear Big Ben, the famous clock in London. Then everybody sings a song about friendship and kisses their friends. We say “Happy New Year” to each other. It’s lucky if a tall man with dark hair is the first person to come to the house in the new year. So I go and visit as many friends as I can. They all give me a drink.

C Angela from Brazil

In all cities in Brazil, we have a big party on New Year’s Eve, especially in Rio de Janeiro. People in this city go to the beaches to watch fireworks(焰火)。We put flowers in the sea and think about things we want for ourselves or others. We usually wear white clothes for good luck during the New Year.

小题1:Picture___________ is about paragraph 1.

小题2:Who have parties on New Year’s Day?

A. People in Spain.  B. People in Britain.

C. People in Brazil.  D. Both B and C.

小题3:From the 2nd paragraph, we can infer (推断)that___________.

A.People listen to the radio at home.

B.Cordon can’t drink much.

C.Cordon is a tall man with dark hair.

D.there are no people near Big Ben.小题4: On New Year’s Day, Brazilians usually wear white clothes because_________.

A.that reminds them of their happy life

B.they hope that can bring them good luck

C.they think that they look beautiful in white

D.that’s what they have to do during the New Year小题5:This article mainly tells us ________________.

A.what people in Britain do on New Year’s Day

B.when and where people have New Year parties

C.why people in different countries like the New Year

D.what people around the world do on New Year’s Day

单项选择题