总是得不到结果!!大侠们帮帮忙!
该题是把输入的字符串中的大写换成小写!!DATAS SEGMENT
string1 db 100
db 0
db 100 dup(0) ;此处输入数据段代码
DATAS ENDS
STACKS SEGMENT
;此处输入堆栈段代码
STACKS ENDS
CODES SEGMENT
ASSUME CS:CODES,DS:DATAS,SS:STACKS
START:
MOV AX,DATAS
MOV DS,AX
mov dx,seg string1
mov ds,dx
mov dx,offset string1
mov ah,0ah
int 21h
mov si,offset string1 ;daxie->xiaoxie
mov si,1
mov cx,20
inc si
again:
cmp [si],41h
jb out1
cmp [si],5ah
ja out1
add [si],20h
out1:
mov ah,02h
mov dl,[si]
int 21h
inc si
loop again
;此处输入代码据段代码
MOV AH,4CH
INT 21H
CODES ENDS
END START