当前位置:网站首页>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
边栏推荐
- Library management system code source code (php+css+js+mysql) complete code source code
- Distinguish between i++ and ++i seconds
- 腾讯完成全面上云 打造国内最大云原生实践
- Scala responsibility chain pattern
- 启动服务11111
- ImageView shows network pictures
- Convert MySQL query timestamp to date format
- 欢迎来到联想智能大屏的新世界
- Scala IO read by line
- Default methods for Scala sample classes
猜你喜欢

Bi-sql delete

Text editor for QT project practice -- Episode 9
![[micro service sentinel] real time monitoring | RT | throughput | concurrency | QPS](/img/fc/6b36759570b9b1007d2640009576d9.png)
[micro service sentinel] real time monitoring | RT | throughput | concurrency | QPS

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

4 years of working experience, and you can't tell the five communication modes between multithreads. Can you believe it?

Library management system code source code (php+css+js+mysql) complete code source code

Text editor of QT project practice ---------- episode 11

移动安全工具-jar

Bi SQL alias

Text editor for QT project practice - Episode 12
随机推荐
Scala IO reads by lexical units and numbers
Scala classes inherit multiple attributes
2022熔化焊接与热切割复训题库模拟考试平台操作
Scala responsibility chain pattern
51单片机多机通信
The interview questions and answers for the high-frequency software test of Dachang help you prepare for the golden nine silver ten
Bi-sql like
EVM Brief
Cobalt Strike安装教程
2022年危险化学品经营单位安全管理人员考试试题及模拟考试
2022r1 quick opening pressure vessel operation test questions and answers
Bi-sql delete
Default methods for Scala sample classes
1. 封装自己的脚手架 2.创建代码模块
Convolution and transpose convolution
启动服务11111
Distinguish between i++ and ++i seconds
LLVM TargetPassConfig
[microservices sentinel] sentinel quick start | building an image | starting the console
戴尔为何一直拒绝将商用本的超薄推向极致?