当前位置:网站首页>控制转移指令
控制转移指令
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
边栏推荐
- string. How to choose h and string and CString
- 搭建flutter环境入坑集合
- 视频压缩编码和音频压缩编码基本原理
- Shell_ 07_ Functions and regular expressions
- 7-5 blessing arrived
- ~72 horizontal and vertical alignment of text
- LeetCode 1636. Sort the array in ascending order by frequency
- ~74 JD top navigation bar exercise
- 原型链继承
- Solve the single thread scheduling problem of intel12 generation core CPU (II)
猜你喜欢
字节跳动海外技术团队再夺冠:高清视频编码已获17项第一
Record the error reason: terminate called after throwing an instance
~84 form supplement
姚班智班齐上阵,竞赛高手聚一堂,这是什么神仙编程大赛?
Submit several problem records of spark application (sparklauncher with cluster deploy mode)
「博士毕业一年,我拿下 ACL Best Paper」
7-4 harmonic average
~69 other ways to use icon fonts
MP4格式详解
字节跳动开源GAN模型压缩框架,算力最高节省97.8%丨ICCV 2021
随机推荐
登陆验证koa-passport中间件的简单使用
Data config problem: the reference to entity 'useunicode' must end with ';' delimiter.
Codeforces Global Round 19
~71 abbreviation attribute of font
~70 row high
7-10 punch in strategy
string. How to choose h and string and CString
LeetCode 1557. The minimum number of points that can reach all points
Introduction to microservices
~86m rabbit practice
Fdog series (VI): use QT to communicate between the client and the client through the server (less information, recommended Collection)
Usage of insert() in vector
姚班智班齐上阵,竞赛高手聚一堂,这是什么神仙编程大赛?
How to generate six digit verification code
Native JS realizes the functions of all selection and inverse selection -- Feng Hao's blog
LeetCode 1637. The widest vertical area between two points without any point
字节跳动多篇论文入选 CVPR 2021,精选干货都在这里了
字节跳动海外技术团队再夺冠:高清视频编码已获17项第一
Codeforces Round #771 (Div. 2)
LeetCode 1638. Count the number of substrings with only one character difference