汇编语言中CALL与RET指令机制.pdfVIP

  • 0
  • 0
  • 约9.94千字
  • 约 14页
  • 2026-10-21 发布于北京
  • 举报

模块化程序设计

#include

stdio.hi:调用子程序:call指令

:

nt

cube(int

x);

int

返回:ret指令

main()

{

printf(%

d\n,cube(2));

r主程序:示例

eturn

0;

}

int

mov

ax,0

cube(int

x)

{

int

f;

f=call

s

x*x;

f=f*x;

return

f;

}子程序子程序子程序mov

ax,

4c00h

文档评论(0)

1亿VIP精品文档

相关文档