当前位置:网站首页>控制转移指令
控制转移指令
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
边栏推荐
- Spark independent cluster dynamic online and offline worker node
- Li Kou leetcode 280 weekly match
- LeetCode 1552. Magnetic force between two balls
- Codeforces Global Round 19
- LeetCode 1638. Count the number of substrings with only one character difference
- Use JQ to realize the reverse selection of all and no selection at all - Feng Hao's blog
- ~78 radial gradient
- LeetCode 1545. Find the k-th bit in the nth binary string
- Introduction to microservices
- Which is more important for programming, practice or theory [there are some things recently, I don't have time to write an article, so I'll post an article on hydrology, and I'll fill in later]
猜你喜欢

Submit several problem records of spark application (sparklauncher with cluster deploy mode)

音视频开发面试题

J'ai traversé le chemin le plus fou, le circuit cérébral d'un programmeur de saut d'octets

~68 Icon Font introduction

7-4 harmonic average

姚班智班齐上阵,竞赛高手聚一堂,这是什么神仙编程大赛?

7-5 blessing arrived

Fdog series (III): use Tencent cloud SMS interface to send SMS, write database, deploy to server, web finale.

Fdog series (VI): use QT to communicate between the client and the client through the server (less information, recommended Collection)

~76 sprite map
随机推荐
我走過最迷的路,是字節跳動程序員的腦回路
姚班智班齐上阵,竞赛高手聚一堂,这是什么神仙编程大赛?
~87 animation
@RestController、@Controller
~83 form introduction
README. txt
Educational Codeforces Round 122 (Rated for Div. 2)
Fdog series (I): think about it. It's better to write a chat software. Then start with the imitation QQ registration page.
LeetCode1556. Thousand separated number
Story of [Kun Jintong]: talk about Chinese character coding and common character sets
LeetCode 1552. Magnetic force between two balls
字节跳动开源GAN模型压缩框架,算力最高节省97.8%丨ICCV 2021
Shell_ 03_ environment variable
LeetCode 1557. The minimum number of points that can reach all points
QT system learning series: 1.2 style sheet sub control lookup
字节跳动新程序员成长秘诀:那些闪闪发光的宝藏mentor们
LeetCode 1637. The widest vertical area between two points without any point
Simple records of business system migration from Oracle to opengauss database
ffmpeg命令行使用
LeetCode 1641. Count the number of Lexicographic vowel strings