当前位置:网站首页>控制转移指令
控制转移指令
2022-07-06 09:29:00 【My71】
技巧
- Z or E 等于
- G or A 大于
- L or B 小于
- 所有跳转指令都以 J 开头
条件跳转指令
- 等于 JZ
- 不等于 JNZ
- 大于 JG or JNLZ
- 小于 JL or JNGZ
- 大于等于 JGZ or JNL
- 小于等于 JLZ or JNG
无条件跳转 JMP
……
start:
……
jmp start
循环指令 Loop
循环初值只能用 cx 寄存器。
语法
mov cx,100 start: …… loop start
每次循环 cx 值自减,知道 cx 值为 0 时结束循环。
程序封装
定义子程序伪指令
- 开始:proc
- 结束:endp
调用子程序指令:call
属性
- 远属性指令:far
- 近属性指令:near
返回主程序指令:ret
语法:定义一个 name 程序
name proc near 程序体 ret name endp
代码演示
code segment assume cs:code start: call delay mov ah,4ch int 21h delay proc near mov ax,10 ret delay endp code ends end start
边栏推荐
- 这群程序员中的「广告狂人」,把抖音广告做成了AR游戏
- Error occurred during initialization of VM Could not reserve enough space for object heap
- JS time function Daquan detailed explanation ----- AHAO blog
- Simply try the new amp model of deepfacelab (deepfake)
- ~82 style of table
- @RequestMapping、@GetMapping
- Educational Codeforces Round 122 (Rated for Div. 2)
- 我在字节跳动「修电影」
- Cmake Express
- ~Introduction to form 80
猜你喜欢
字节跳动技术面试官现身说法:我最想pick什么样的候选人
字节跳动多篇论文入选 CVPR 2021,精选干货都在这里了
Fdog series (4): use the QT framework to imitate QQ to realize the login interface, interface chapter.
Mp4 format details
J'ai traversé le chemin le plus fou, le circuit cérébral d'un programmeur de saut d'octets
Some instructions on whether to call destructor when QT window closes and application stops
Erlang installation
Simply try the new amp model of deepfacelab (deepfake)
TCP的三次握手和四次挥手
亮相Google I/O,字节跳动是这样应用Flutter的
随机推荐
Native JS realizes the functions of all selection and inverse selection -- Feng Hao's blog
ByteDance technical Interviewer: what kind of candidate do I want to pick most
Yao BanZhi and his team came together, and the competition experts gathered together. What fairy programming competition is this?
string. How to choose h and string and CString
~69 other ways to use icon fonts
Record the error reason: terminate called after throwing an instance
Fdog series (VI): use QT to communicate between the client and the client through the server (less information, recommended Collection)
I'm "fixing movies" in ByteDance
Hbuilder x format shortcut key settings
Li Kou leetcode 280 weekly match
LeetCode 1560. The sector with the most passes on the circular track
LeetCode 1552. Magnetic force between two balls
7-5 blessing arrived
Eureka single machine construction
DS18B20数字温度计系统设计
Fdog series (I): think about it. It's better to write a chat software. Then start with the imitation QQ registration page.
~79 Movie card exercise
~71 abbreviation attribute of font
Full record of ByteDance technology newcomer training: a guide to the new growth of school recruitment
Chapter 1 overview of MapReduce