求答案
从键盘输入一字符串,将小写字母转为大写,其他字符不转换,原样输出,结果在屏幕显示,为什么我的程序说明都没有显示出来啊,求讲解啊data segment
string db 100
db ?
db 100 dup(?)
n equ$-string
sstringdb 'putting:',0dh,0ah,'$'
data ends
code segment
assume cs:code,ds:data
s: mov ax,data
mov ds,ax
lea dx,sstring
mov ah,09h
int 21h
lea dx,string
mov ah,0ah
int 21h
mov bx,0
mov cx,n
lop:mov al,
cmp al,'a'
jblop1
cmp al,'z'
jalop1
sub al,20h
lop1: mov dl,al
mov ah,02h
int 21h
inc bx
loop lop
mov ah,4ch
int 21h
code ends
end s
{:1_1:}
页:
[1]