.model small
.386
.data
string byte 100,?,100 dup (?)
lower
byte 100 dup (?),'$'
great byte 100 dup (?),'$'
.code
.startup
lea dx,string
mov ah,0ah
int 21h
xor cx,cx
mov cl,string[1]
;字符的个数
lea bx,string[2]
xor di,di
xor si,si
AGN:
mov al,[bx]
test al,20h
jz GRT
;D5位为0,说明是大写
mov lower[si],al
inc si
jmp NEXT
GRT: mov great[di],al
inc di
NEXT:inc bx
loop AGN
lea dx,great
mov ah,9
int 21h
mov dl,0dh
mov ah,2
int 21h
mov dl,0ah
int 21h
lea dx,lower
mov ah,9
int 21h
.exit 0
end
流程图很简单。。。自己看看就画出来了