未分类题

下面的8086/8088 汇编语言程序中,主程序通过堆栈将有关信息传送给子程序 STRLEN。在主程序的【 】处填空,使程序能正常运行。
DSEG SEGMENT
ARRAY DB 'Computer$',
NUM DW 0
DSEG ENDS
SSEG SEGMENT STACK
DB 256DUP(0)
SSEG ENDS
CSEGl SEGMENT
ASSUME DS:DSEG,SS:SSEG,CS:CSEGl
START: MOV AX,DSEG
MOV DS,AX
MOV AX,OFFSETARRAY
PUSH AX
CALL【 】
MOV NUM,AX
MOV AH,4CH
INT 21H
CSEG l ENDS
CSEG2 SEGMENT
ASSUME DS:DSEG,SS:SSEG,CS:CSEG2
STRLEN PROC FAR
PUSH BP
MOV BP,SP
PUSH SI
MOV SI,[BP+6]
NEXT: CMP BYTE PTR[SI],'$'
JZ DONE ;串尾吗?
INC SI
JMP NEXT
DONE: MOV AX,SI
SUB AX,[BP+6]
POP SI
POP BP
RET 2
STRLEN ENDP
CSEG2 ENDS
END START

【参考答案】

FAR PTR STRLEN
FAR PTR STRLEN 解析:该题考查考生对宏汇编指令的掌握。从本程序的功能......

(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)
热门 试题

未分类题
Revision is rethinking, but two misconceptions are byno means uncommon among writers, especially amongdeveloping writers. First, many a writer mistakenly equate 【M1】______revision with editing and proofreading. Editing means revisingfor 'surface errors' --mistakes in spelling, grammar, punctuation,sentence tense, and word choicE.Certainly, good writers comb theirpapers through such errors, and they edit their prose extensively for 【M2】______clarity, conciseness, and emphasis, too. Proofreading to searchout and destroy errors and typos that distort meaning or distractreader is also important. Without question, both editing and 【M3】______proofreading are essential to a polished paper. But revision is not limitedto such activities. It includes them but also encompasses those large, global 【M4】______changes writers may make in purpose, focus, organization, and development.Writers who revise effectively not only change words and catch mechanical errorsbut also typically add, delete, rearrange, and rewrite large chunks of prose, too.【M5】______In other words, revision is not cosmetic surgery on the body that mayneed major resuscitation. Another misconception about revision is 【M6】______that some people regard revising as the repeat performance of ajob did poorly the first timE.But this attitude is not productivE.【M7】______Revising is not punishment for failing to produce a perfect first draft.Rarely, if ever, does someone--even our most admired professional 【M8】______writers--produce the results they want with revising. 【M9】______Remember that revising is not a tacked-on stage nor is it merely aquick touch-up; it is an integral part of the entire writing process itselF.It is an ongoing opportunity to discover, remember, reshape, or 【M10】______refine your ideas.【M1】
A.Writers
B.【M5】______
In
C.
Rarely,
D.
It
E.
【M1】