当前位置:网站首页>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
边栏推荐
- Redis + Lua implementation of distributed interface current limiting
- 4年工作經驗,多線程間的5種通信方式都說不出來,你敢信?
- Golang示例续期锁:Redis+Channel+sync.Mutex
- Welcome to the new world of Lenovo smart screen
- 重磅:国产IDE发布,由阿里研发,完全开源!(高性能+高定制性)
- 2022年危险化学品经营单位安全管理人员考试试题及模拟考试
- Programmer: did you spend all your savings to buy a house in Shenzhen? Or return to Changsha to live a "surplus" life?
- [redis realizes seckill business ③] specific implementation of optimistic lock for oversold problem
- Scala trait exercise
- 【直播回顾】2022腾讯云未来社区城市运营方招募会暨SaaS 2.0新品发布会!
猜你喜欢

JS Chapter 1 Summary

Danish Technical University pioneered the application of quantum computing to power flow modeling of energy system

Bi SQL alias

Text editor for QT project practice -- Episode 9

Text editor for QT project practice - Episode 10

Rich text tables, lists, pictures

Cobalt strike installation tutorial

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

QT electronic clock
![[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
随机推荐
Scala sample object
程序员:是花光积蓄在深圳买房?还是回到长沙过“富余”生活?
adb shell getevent
丹麥技術大學首創將量子計算應用於能源系統潮流建模
EVM Brief
If the order has not been paid for 30 minutes, it will be automatically cancelled. How can I achieve this?
Ecological escort cloud service providers wave "Intel flag"
归并排序求逆序数
Sanic service startup failed
Danish Technical University pioneered the application of quantum computing to power flow modeling of energy system
Using bindservice method to pause music playing
Welcome to the new world of Lenovo smart screen
Convert MySQL query timestamp to date format
Add information on the left and add parts on the right of the status bar
[microservices sentinel] sentinel quick start | building an image | starting the console
4年工作经验,多线程间的5种通信方式都说不出来,你敢信?
Library management system code source code (php+css+js+mysql) complete code source code
Default methods for Scala sample classes
移动安全工具-jar
Bi skill - judge 0 and null