汇编流程图,急需~~~~越详细越好~~~

来源:百度知道 编辑:UC知道 时间:2024/05/22 13:32:47
data segment
da1 db 20,?,20 dup(?)
da2 db 20,?,20 dup(?)
da3 db 'input into two strings$'
da4 db 'putinto the postions$'
da5 db 40 dup(0),'$'
data ends
stacks segment
stacks ends
codes segment 'code'
assume cs:codes,ds:data,ss:stacks
start:
mov ax,data
mov ds,ax
lea dx,da3
mov ah,09h
int 21h
mov dl,0ah
mov ah,02h
int 21h
mov dl,0dh
int 21h
lea dx,da1
mov ah,0ah
int 21h
mov dl,0ah
mov ah,02h
int 21h
mov dl,0dh
int 21h
lea dx,da2
mov ah,0ah
int 21h
mov dl,0ah
mov ah,02h
int 21h
mov dl,0dh
int 21h

lea dx,da4
mov ah,09h
int 21h
mov dl,0ah
mov ah,02h
int 21h
mov dl,0dh
int 21h
mov ah,01h
int 21h
push ax
mov dl,0ah
mov ah,02h
int 21h
mov dl,0dh
int 21h

你的这个程序的功能是:
(1)从键盘输入两个字符串(先输出提示信息,再输入);
(2)然后再从键盘输入一个位置(先输出提示信息,再输入);
(3)将第一个字符串在此位置之前的内容先复制到第三个字符串中,接着将第二个字符串全部内容复制到第三个字符串中,再将第一个字符串的剩余内容复制到第三个字符串中。即第三个字符串的内容将第二个字符串插入到第一个字符指定位置中,由两个串连接而成的;
(4)将第三个字符串在屏幕上输出。