data segment
buf1 db ‘shu ru yi ge dan ci,jieguo:huo ba kong ge shan diao’,13,10,’$’
int1 db 100,101 dup(0),’$’
buf db 100,101 dup(0),’$’
data ends
code segment
assume cs:code,ds:data
main:mov dx,data
mov ds,dx
lea dx,[buf1]
mov ah,9
int 21h ;输出提示:题目用途
lea dx,[int1]
mov ah,10
int 21h
lea si,[int1+2]
lea di,[buf+2]
mov ch,0
mov cl,[int1+1]
again:mov al,[si]
cmp al,’ ‘
je lab
mov [di],al
inc di
lab: inc si
loop again
mov ah,2
mov dl,13
int 21h
mov dl,10
int 21h
lea dx,[buf+2]
mov ah,9
int 21h
mov ax,4c00h
int 21h
code ends
end main
汇编 输入带空格的代词,输出时把空格删掉(有效果图)
- THE END -
Category: 汇编
发表评论?
I’m really loving the contents of your blog. Hopefully you keep posting regularly. Thanks.
thx
Really interesting blog, keep up the good work!
thx. welcome
Really great article with very interesting information. You might want to follow up to this topic!?! 2012
THX. WELCOME
Really great article with very interesting information. You might want to follow up to this topic!?! 2011
Thank! Welcome
Great article with very interesting information. You are a very skilled blogger, thats for sure! =)
Why? How old are you.
I just added your website on my blogroll. Really enjoyed reading through. Excellent information!
Where, swindler. HAHA
I just added your website on my blogroll. I may come back later on to check out updates. Excellent information!
follow me. thx
This is such a great resource that you are providing and you give it away for free. I enjoy seeing websites that understand the value of providing a prime resource for free. I truly loved reading your post. Thanks!
Thanks!
School write when it.
I hope it can help you.