-1
org 100h
jmp var1 ; jump over data declaration
source db 'This is the source string',0
target db SIZEOF source DUP ('#')
var1:
Mov SI,25;lenght of the string
start:
Mov AL,source[SI]
DEC SI
Mov ah ,0eh
int 10h
mov BL,target[DI]
CMP source[SI],BL;comparing to get the end of the string
je stop
jmp start
stop:
mov ah, 0
; wait for any key....
ret ; return to operating system.
欢迎来到StackOverflow,感谢您发布您的第一个问题。为了获得最好的答案,问题应该清楚说明你想要达到的目标以及你已经完成的目标。有一篇关于如何编写好问题的伟大文章(http://stackoverflow.com/help/how-to-ask),请考虑阅读并编辑你的问题,以便更清楚地了解你想要的内容。 – MikeC
l不想要微笑或程序中的其他符号 – sinan
魔法八球告诉我你正在试图弄清楚为什么你的代码在字符串结束后继续写入。 –