当前位置:网站首页>汇编语言(4)函数传参
汇编语言(4)函数传参
2022-06-24 20:24:00 【Day-3】
寄存器传参
assum cs:code
code segment
addx proc
add si,di
mov ax,si
ret
addx endp
main proc
mov si,5
mov di,6
call addx
mov bx,ax
mov ax,4C00H
int 21H
main endp
start:call main
code ends
end start
栈传参
关于16位下的栈的特性。
assum cs:code
code segment
addx proc
push bp
move bp,sp
mov si,[bp+4]
mov di,[bp+6]
add si,di
mov ax,si
pop bp
ret
addx endp
main proc
mov ax,5
mov bx,6
push ax
push bx
call addx
add sp,4
mov bx,ax
mov ax,4C00H
int 21H
main endp
start:call main
code ends
end start
边栏推荐
- Novice, let me show you the "soft test" at one time
- Scala object blending trait
- Custom animation (simulated win10 loading animation) - Optimization
- I 刷题 I — 复制带随机指针的链表
- 新手看过来,带你一次性了解“软考”
- 2022 crane driver (limited to bridge crane) examination question bank simulated examination platform operation
- Picture rotation move zoom gradient
- Previous basic review (link)
- Databinding quick start (still using findviewbyid?)
- Go语言运算符(第8课下)
猜你喜欢

2022 melting welding and thermal cutting recurrent training question bank simulated examination platform operation

2022 crane driver (limited to bridge crane) examination question bank simulated examination platform operation

Cobalt Strike安装教程

Text border format and text block of rich text
最新QQ微信域名防红PHP程序源码+强制跳转打开

2022安全员-C证考试模拟100题及在线模拟考试

2021-11-07

LLVM TargetPassConfig

Xcode preview displays a bug in the content of the list view and its solution

Simulation questions and answers of the latest national fire facility operator (senior fire facility operator) in 2022
随机推荐
Mobile security tool jar
Redis + Lua implementation of distributed interface current limiting
Tiktok wallpaper applet v1.0.2 function, new arrival function
JSON file of China's provincial boundaries
ImageView shows network pictures
Tiktok wallpaper applet, starlight wallpaper applet version 2.0, upgraded version
Rich text tables, lists, pictures
C#和C 的CAN通信实验
Sanic服务启动失败
生态护航 云服务商挥起“英特尔大旗”
Previous basic review (link)
activity生命周期
adb shell getevent
Default methods for Scala sample classes
改造一下 BeanUtils,优雅的实现 List 数据拷贝
Scala IO read by line
QT (35) - operate excel qxlsx qaxobject
使用 Loki 微服务模式部署生产集群
Distinguish between i++ and ++i seconds
[redis realizes seckill service ②] solution to oversold problem