当前位置:网站首页>汇编语言(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
边栏推荐
- 欢迎来到联想智能大屏的新世界
- Scala trait construction mechanism
- The basic principle and application of iterator and enhanced for
- A website for programmers with a monthly salary of 30K
- Scala classes inherit multiple attributes
- Practical operation notes - notebook plus memory and ash cleaning
- 51 single chip microcomputer multi computer communication
- 【Redis实现秒杀业务②】超卖问题的解决方案
- Text editor of QT project practice ---------- episode 8
- 2022R1快开门式压力容器操作考题及答案
猜你喜欢

I 刷题 I — 复制带随机指针的链表

Première application de l'informatique quantique à la modélisation des flux de puissance dans les systèmes énergétiques à l'Université technique danoise

Using tcp/udp tools to debug the yeelight ribbon

QT(35)-操作EXCEL-QXlsx-QAxObject

Deploy a production cluster using Loki microservice pattern

Simulation questions and answers of the latest national fire facility operator (senior fire facility operator) in 2022

重磅:国产IDE发布,由阿里研发,完全开源!(高性能+高定制性)

Punch smart spirit 1. The brand is attractive. What is the strength of the product?

【Redis实现秒杀业务②】超卖问题的解决方案

2022年危险化学品经营单位安全管理人员考试试题及模拟考试
随机推荐
通过kubernetes可视化界面(rancher)安装kibana
JS Chapter 1 Summary
改造一下 BeanUtils,优雅的实现 List 数据拷贝
Cobalt Strike安装教程
LLVM TargetPassConfig
The picture of wechat official account can not be displayed normally
图书馆管理系统代码源码(php+css+js+mysql) 完整的代码源码
Golang示例续期锁:Redis+Channel+sync.Mutex
对技术的乐观,正让戴尔取得比想象中更多的成就
Leetcode 1248. 统计「优美子数组」(害,突然发现只会暴力枚举了)
Activity startup process
Mobile security tool jar
2022R1快开门式压力容器操作考题及答案
LLVM TargetPassConfig
移动安全工具-jarsigner
Scala IO read by line
Text editor for QT project practice -- Episode 9
Scala trait exercise
yasea apk 下载 镜像
Transform BeanUtils to achieve list data copy gracefully