为什么不显示 小写 出来呢
data segmenta db 'enter the string $'
buf db 100
len db ?
str db 100 dup(?)
zs db 0dh,0ah
we db 100 dup(?)
data ends
code segment
main proc far
assume cs:code,ds:data
start:mov ax,data
mov ds,ax
lea dx,a
mov ah,9h
int 21h
lea dx,buf
mov ah,0ah
int 21h
mov cl,len
mov ch,0h
lea bx,str
lea si,we
s:mov al,0
mov al,[bx]
cmp al,'a'
jb x1
cmp al,'z'
ja x1
sub al,20h
mov [si],al
jmp x2
x1:mov [si],al
jmp x2
x2:inc bx
inc si
loop s
mov dx,0
mov al,al
mov ah,09h
int 21h
lea dx,zs
mov ah,09h
int 21h
ret
main endp
code ends
end start
代码已经贴了
百思不得其解
为什么不显示小写出来呢
那位好心的人指点一下