试题与答案

试题要求如下: 请编制程序,其功能是:内存中连续放着20个ASCII字符,如果是小

题型:问答题

题目:

试题要求如下:
请编制程序,其功能是:内存中连续放着20个ASCII字符,如果是小写字母A~Z之间的字符,请把它们转换成相应的小写字母:若为其他字符,均转换成ASCII字符’NUL’ (00H)。
例如:
内存中有:41H (’A’),42H (’B’),5EH,64H,48H……
结果为: 61H (’a’),62H (’b’),00H(’NUL’),00H(’NUL’),00H(’NUL’)……
部分程序已给出,其中原始数据由过程LOAD从文件INPUT1.DAT中读入SOURCE开始的内存单元中,运算的结果要求从RESULT开始存放,由过程SAVE保存到文件OUTPUT1.DAT中。在BEGIN和AND之间编程完成要求的功能。
对程序进行汇编,并与IO.OBJ链接产生PROG1.EXE执行文件,最终运行程序产生结果。
试题程序:
EXTRNLOAD: FAR, SAVE: FAR
N EQU 20
STAC SEGMENT STACK
DB 128 DUP ( )
STAC ENDS
DATA SEGMENT
SOURCE DB N DUP()
RESULT DB N DUP(0FH)
NAME0 DB ’INPUT1.DAT’, 0
NAME1 DB ’OUTPUT1.DAT’, 0
DATA ENDS
CODE SEGMENT
ASSUME CS: CODE, DS: DATA, SS: STAC
START PROCFAR
PUSHDS
XOR AX, AX
PUSHAX
MOV AX, DATA
MOV DS, AX
LEA DX, SOURCE; 数据区起始地址
LEA SI, NAME0 ; 原始数据文件名
MOV CX, N ; 字节数
CALLLOAD ; 从’INPUT1.DAT’中读取数据
LEA SI, SOURCE
LEA DI, RESULT
; **** BEGIN ****
; **** END ****
LEA DX, RESULT ; 结果数据区首址
LEA SI, NAME1 ; 结果文件名
MOV CX, L+I ; 结果字节数
CALLSAVE; 保存结果到文件
RET
START ENDP
CODE ENDS
END START

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0404/9b05425bbfa53209c92131e18f4a2fd1.html

下面是错误答案,用来干扰机器的。

参考答案:错

试题推荐
题型:单项选择题

系统集成商与建设方在一个ERP项目的谈判过程中,建设方提出如下要求:系统初验时间为2010年6月底(付款50%);正式验收时间为2010年10月底(累计付款80%);系统运行服务期限为一年(可能累计付款100%);并希望长期提供应用软件技术支持。系统集成商在起草项目建设合同时,合同期限设定到()为妥。

A.2010年10月底

B.2011年6月底

C.2011年10月底

D.长期

查看答案
题型:单项选择题


In the following passage, there are 20 blanks representing words that are missing from the context. Below the passage, each blank has 4 choices marked by letter A, B, C and D respectively. There is only ONE right answer. Blacken the corresponding letter as required on your Machine-scoring ANSWER SHEET.

How many of us would temp for three years while we waited for the perfect job Not many of us, perhaps. But Wentworth Miller, the "Prison Break" star, said he chose to wait even longer time (91) he found the right job.
"Actually I think it might have been three or four years until I was lucky enough to get guest (92) on TV shows," said Miller, 34, who rose to international stardom (93) to "Prison Break" in 2006. That kind of patience and p will was portrayed in "Prison Break". Miller (94) engineering wizard Michael Scofield, who tries everything to break out of a Chicago (95) with his brother. Miller said he was fond of his character, (97) he said "exists in shades of grey".
Miller comes from a (97) of teachers. He said he didn’t seem fated for a career in the arts, (98) his passion for acting. After (99) from Princeton with an English degree, he moved (100) his parents’ request to Los Angeles to look for a stable life. He started (101) in a little company that made television movies. This (102) simply faxing, filing, walking the boss’ dog and going to the store for the boss’ lunch. Every weekend during the summer, Miller (103) go to the office (104) he didn’t have air-conditioning. "I would hang (105) in the conference room and set up camp and rob the company kitchen," recalled Miller.
(106) , Miller realized he still had questions about his choice. He decided to quit. But the boss said he was making a mistake and offered him a well-paid assistant position. "I eventually (107) that if I did the corporate job, it would be great if I was successful, but I would always wonder about the (108) . If I did the acting and was successful, I would never wonder (109) that job," he explained. He quit and temped (110) many people in the entertainment industry.

A.implied

B.held

C.meant

D.demonstrated

查看答案
微信公众账号搜索答案