流程图?说下结构好了,输入字符 然后判断输入的字符类型,如果是小写字母将输入的字母转换成大写字母,并输出,如果不是则显示错误信息
代码现编:
data segment
inputmsg db 'input :$'
errmsg db 0dh,0ah,'it's not a litter$'
msg db 0dh,0ah,'your input :$'
data ends
code segment
assume cs:code,ds:data
start:
mov ax,data
mov ds,ax
mov ah,9
mov dx,offset inputmsg
int 21h
mov ah,1
int 21h
cmp al,61h
jc error
cmp al,7bh
jnc error
sub al,20h
mov dx,offset msg
mov ah,9
int 21h
mov ah,2
mov dl,al
int 21h
jmp over
error:
mov ah,9
mov dx,offset errmsg
int 21h
over:
mov ah,7
int 21h
mov ax,4c00h
int 21h
code ends
end start
另外,站长团上有产品团购,便宜有保证
温馨提示:答案为网友推荐,仅供参考