当前位置:网站首页>Assembly language (4) function transfer parameters
Assembly language (4) function transfer parameters
2022-06-25 01:14:00 【Day-3】
Register transfer parameters
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
Stack pass reference
About 16 Characteristics of stack under bit .
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
边栏推荐
- [practical series] full WiFi coverage at home
- EVM简略
- Activity lifecycle
- 丹麦技术大学首创将量子计算应用于能源系统潮流建模
- 利用 Redis 的 sorted set 做每周热评的功能
- 归并排序求逆序数
- 欢迎来到联想智能大屏的新世界
- Default methods for Scala sample classes
- [microservices sentinel] cluster link | microservices cluster environment construction
- 2022r1 quick opening pressure vessel operation test questions and answers
猜你喜欢
使用 Loki 微服务模式部署生产集群
Cobalt Strike安装教程
Text editor for QT project practice - Episode 10
51单片机多机通信
How to store dataframe data in pandas into MySQL
Bi SQL alias
汇编语言(3)16位汇编基础框架与加减循环
Deep learning LSTM model for stock analysis and prediction
Scala IO reads by lexical units and numbers
扎克伯格上手演示四款VR头显原型机,Meta透露元宇宙「家底」
随机推荐
I 刷题 I — 复制带随机指针的链表
activity生命周期
[redis realizes seckill business ③] specific implementation of optimistic lock for oversold problem
Text border format and text block of rich text
How about compass stock trading software? Is it safe?
最新QQ微信域名防红PHP程序源码+强制跳转打开
Scala classes inherit multiple attributes
Danish Technical University pioneered the application of quantum computing to power flow modeling of energy system
Thermodynamic diagram display correlation matrix
腾讯云WeCity丨你好 2022!
云开发技术峰会·公益编程挑战赛【火热报名中】!
4 years of working experience, and you can't tell the five communication modes between multithreads. Can you believe it?
Deploy a production cluster using Loki microservice pattern
Yasea APK Download Image
[redis realizes seckill service ②] solution to oversold problem
Leetcode 1248. Statistics of "graceful subarray" (harm, suddenly found that it can only enumerate violently)
Examination questions and mock examination for safety management personnel of hazardous chemical business units in 2022
Rich text tables, lists, pictures
4年工作经验,多线程间的5种通信方式都说不出来,你敢信?
2022 melting welding and thermal cutting recurrent training question bank simulated examination platform operation