汇编学习(15)复制字符串
TITLE Copying a string
INCLUDE Irvine32.inc
.data
source BYTE "This is the source string"
target BYTE SIZEOF source DUP(0),0
.code
main PROC
mov esi,0 ;偏移地址 esi = 0
mov ecx,SIZEOF source ;循环次数
L1:
mov al,source[esi]
mov target[esi],al
inc esi
loop L1
exit
main ENDP
posted on 2011-08-14 20:58 ManLoveGirls 阅读(387) 评论(0) 收藏 举报
浙公网安备 33010602011771号