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