include irvine32.inc
.data
str1 byte "赋值后的结果:",0;
.code
main proc
call swap;
;mov ebx,offset str1;
;call writestring;
exit
main endp
swap proc
push ebp;
mov ebp,esp;
sub esp,32;
mov ecx,29;
mov eax,ebp;
L1:
   mov byte ptr [eax-32],'@';
   inc eax;
   loop L1;
    mov byte ptr[eax-32],0
    mov edx,offset str1;
    call writestring;
    call crlf

   mov edx,ebp;
   sub edx,31;
   call writestring;
   call crlf

   mov esp,ebp;
   pop ebp;
    ret 0
swap endp
end main

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