1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
assume cs:code, ds:data data segment dw 0 data ends code segment start: mov ax,data mov ds,ax mov word ptr ds:[0],2 push word ptr ds:[0] call cube mov ax,4c00h int 21h cube: mov ax,word ptr ds:[0] mov bx,ax mul bx mul bx ret code ends end start end |
转载请注明:exchen's blog » 16位汇编 call调用函数 通过栈来传递参数