参数传值(数组赋值)
生活随笔
收集整理的這篇文章主要介紹了
参数传值(数组赋值)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
include irvine32.inc
sub2 proto? a:ptr dword,l1:dword
.data
i dword 10 dup(?);
str1 byte "開始初始化的值:",0;
.code
main proc
mov edx,offset str1;
call writestring
invoke sub2 ,offset i,lengthof i;
call crlf;
mov esi,offset i;
mov ecx,lengthof i;
mov ebx,dword;
call dumpmem;
exit
main endp
sub2 proc,
????? a:PTR dword,
????? l2:dword
??? mov esi, a;
??? call randomize;
??? mov ecx,l2
L1:
??? mov eax,1000;
??? call randomrange
??? mov [esi],eax;
??? add esi,4;
??? call writehex;
??? mov al,',';
??? call writechar;
????? Loop L1;
???? ret
sub2 endp
end main
轉載于:https://www.cnblogs.com/hqu-ye/archive/2013/02/25/2932595.html
總結
以上是生活随笔為你收集整理的参数传值(数组赋值)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 十五、表单
- 下一篇: Google App Engine使用简