汇编一个设计题 高手进来做做
题目是
将长度为18的字符串SIR中的大写转变为小写,其中余字符不变,转换后的结果存入字符串中.
参考答案:dseg segment
str db 'aBcDefGhijKlmN%^)#'
cnt dw 18
dseg ends
cseg segment
assume cs:cseg,ds:dseg
begin: mov ax,dseg
mov ds,ax
mov cx,cnt
lea si,str
next: mov al,[si]
cmp al,'A'
jb skip
cmp al,'Z'
ja skip
or al,20H
mov [si],al
skip: inc si
loop next
mov ah,4ch
int 21h
cseg ends
end begin