include irvine32.inc
.data
a byte "abhgfu  s women"
b byte sizeof a dup(0)

.code
main proc

;打印出字符串;
mov edx,offset a
call writestring
call crlf


mov esi,offset a
mov edi,offset b
mov ecx,(sizeof a)
add esi,(sizeof a)-1

mov eax,0


L1:

   mov al, byte ptr [esi]
   mov [edi], eax
   inc edi
   dec esi

   LOOP L1

mov edx ,offset b
call writestring

call crlf

exit

main endp
end main

posted on 2013-02-25 19:18  叶城宇  阅读(166)  评论(0编辑  收藏  举报