当前位置:网站首页>汇编语言(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
边栏推荐
- 生成订单30分钟未支付,则自动取消,该怎么实现?
- The picture of wechat official account can not be displayed normally
- 百公里加速仅5.92秒,威兰达高性能版以高能产品实力领跑
- Text editor of QT project practice ---------- episode 11
- [redis realizes seckill service ④] one order for one person, and cannot be purchased repeatedly
- 最新QQ微信域名防红PHP程序源码+强制跳转打开
- 51单片机多机通信
- Scala template method pattern
- Thermodynamic diagram display correlation matrix
- 【微服务|Sentinel】簇点链路|微服务集群环境搭建
猜你喜欢

The basic principle and application of iterator and enhanced for

Syntax highlighting of rich text

Practical operation notes - notebook plus memory and ash cleaning
![[redis realizes seckill business ③] specific implementation of optimistic lock for oversold problem](/img/01/5ec4e5dae1748dce3d5dee33a24b0b.png)
[redis realizes seckill business ③] specific implementation of optimistic lock for oversold problem

Thermodynamic diagram display correlation matrix

108 pages (40000 words) proposal for future apartment intelligent design platform project (version 2022)

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

QT(35)-操作EXCEL-QXlsx-QAxObject
![[redis realizes seckill service ④] one order for one person, and cannot be purchased repeatedly](/img/75/bc588eb4e54899e93cc7df62e45820.png)
[redis realizes seckill service ④] one order for one person, and cannot be purchased repeatedly

Text editor of QT project practice ---------- episode 11
随机推荐
Mobile security tool apktool
JSON file of China's provincial boundaries
程序员:是花光积蓄在深圳买房?还是回到长沙过“富余”生活?
中金财富证券开户佣金多少呢?股票开户交易安全靠谱吗?
Thermodynamic diagram display correlation matrix
Tiktok wallpaper applet v1.0.2 function, new arrival function
Databinding quick start (still using findviewbyid?)
Text editor for QT project practice - Episode 10
Using tcp/udp tools to debug the yeelight ribbon
adb shell getevent
卷积与反卷积关系超详细说明及推导(反卷积又称转置卷积、分数步长卷积)
2022 simulated 100 questions of safety officer-c certificate examination and online simulated examination
Using bindservice method to pause music playing
Scala IO read by line
2022r1 quick opening pressure vessel operation test questions and answers
Transform BeanUtils to achieve list data copy gracefully
【无标题】
Scala responsibility chain pattern
指南针炒股软件怎么样?安全吗?
QT (36) -rapidjson parsing nested JSON