一个汇编语言编程,请大家帮帮我吧!急!

来源:百度知道 编辑:UC知道 时间:2024/06/01 08:24:01
汇编编程:编程完成从键盘上接受两个字符串并在显示器上显示,将第二个字符串插入到第一个字符串的指定位置上,并显示合并后的字符串!
如果有程序流程图就更好了!
急呀!谢谢!
是用汇编语言编写呀,谢谢啦

修改如下,没打草稿,应该没问题:

.model small
.286
.stack
.data
str1 db 50,?,50 dup('$')
str2 db 20,?,20 dup('$')
msg1 db 0dh,0ah,'Input the first string=$'
msg2 db 0dh,0ah,'Input the second string=$'
msg3 db 0dh,0ah,'The concatenated String=$'
msg4 db 0dh,0ah,'The place to insert=$'
crlf db 0dh,0ah,'$'
count db ?
.code

main proc far
mov ax,@data
mov ds,ax
mov es,ax

lea dx,msg1
call printstr

lea dx,str1
mov ah,0ah
int 21h

lea dx,crlf
call printstr
lea dx,str1
add dx,2
call printstr

lea dx,msg2
call printstr

lea dx,str2
mov ah,0ah
int 21h

lea dx,crlf
call printstr
lea dx,str2
add dx,2
call printstr

lea dx,msg4
call printstr
mov ah,1
int 21h
sub al,30h
mov count,al
call