问题 问答题 案例分析题

阅读下面的程序,回答问题

DATA SEGMENT

BUF DB '1234'

N=$-BUF

BCD DB N DUP(?)

DATA ENDS

CODE SEGMENT

ASSUME CS:CODE,DS:DATA

START:MOV AX,DATA

MOV DS,AX

LEA SI,BUF

MOV CX,N

LEA DI,BCD+N-1

LOOP1:MOV AL,[SI]

SUB AL,30H

MOV [DI],AL

INC SI

DEC DI

DEC CX

JNE LOOP1

MOV AH,4CH

INT 21H

CODE ENDS

END START

取消数据段的BCD存储区,将处理后的数据放回原处,应如何修改程序?

答案

参考答案:

取消数据段的BCD存储区,将经处理后的数据放回原处,修改程序如下:

DATA SEGMENT

BUF DB '1234'

N=$-BUF

DATA ENDS

CODE SEGMENT

ASSUME CS:CODE,DS:DATA

START:MOV AX,DATA

MOV DS,AX

LEA SI,BUF

MOV CX,N

LOOP1:MOV AL,[SI]

SUB AL,30H

MOV [SI],AL

INC SI

DEC CX

JNE LOOP1

MOV AH,4CH

INT 21H

CODE ENDS

END START

完形填空
Barefoot (赤脚的) and dirty, the girl just sat there and watched the people go by. She never tried to speak. She never said a word. Many people        , but never did one person stop.
The next day, I decided to go back to the park, being curious if the little girl would still be there. Right in the very spot as she was the day before, she sat, with the         look on her face.
As I began walking towards her, I could see the back of the little girl’s dress showed a deformity (畸形的). As I got closer, the little girl slightly          her eyes to avoid (避开) my stare.
I sat down beside her and opened with a simple        . The little girl stammered (结结巴巴地说) a hi. I smiled and she shyly smiled back. We talked         darkness fell and the park was completely empty.
“Why are you so sad?”
She replied slowly, “Because I’m        .”
“Little girl,” I said in a soft voice, “You          me of an angel because of your difference.”
She stood to her feet excitedly, “Really?”
“Yes, that’s the thing. You’re like a little angel sent to watch over all those people walking by.”
She nodded her head and smiled, “       I am. And since you think of someone        yourself, my job here is done.”
What a big        ! I stood quickly, “Wait, so why did no one stop to help an angel?”
She bloomed(绽放) a big smile, “You’re the          one who could see me, because you care for others.” With those words, she spread her wings and flied away from my sight.
From then on, I believe I am not all I have, for there is an angel always          me. She is always watching over those who do good things for others.
小题1:
A.passedB.lookedC.askedD.helped
小题2:
A.angriestB.coldestC.happiest D.saddest
小题3:
A.lowered B.closedC.rose D.opened
小题4:
A.smileB.helloC.question D.word
小题5:
A.beforeB.afterC.till D.when
小题6:
A.differentB.foolishC.beautifulD.poor
小题7:
A.forceB.treatC.turn D.remind
小题8:
A.IndeedB.HappilyC.PerhapsD.Luckily
小题9:
A.beyondB.besideC.including D.except
小题10:
A.excitementB.presentC.surpriseD.happiness
小题11:
A.clever B.greatC.lucky D.only
小题12:
A.on B.with C.inD.for
猜谜题,问答题