当前位置:网站首页>控制转移指令
控制转移指令
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
边栏推荐
- 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]
- Cmake error: could not create named generator visual studio 16 2019 solution
- ~75 background
- 字节跳动技术面试官现身说法:我最想pick什么样的候选人
- Eureka high availability
- Ffmpeg command line use
- 搭建flutter环境入坑集合
- Go language uses the thrift protocol to realize the client and service end reports not enough arguments in call to oprot Writemessagebegin error resolution
- Fdog series (III): use Tencent cloud SMS interface to send SMS, write database, deploy to server, web finale.
- JS encapsulates the method of array inversion -- Feng Hao's blog
猜你喜欢

Soft music -js find the number of times that character appears in the string - Feng Hao's blog

Shell_ 07_ Functions and regular expressions

Shell_ 06_ Judgment and circulation

Shell_ 02_ Text three swordsman

Fdog series (4): use the QT framework to imitate QQ to realize the login interface, interface chapter.

Error occurred during initialization of VM Could not reserve enough space for object heap

Shell_ 03_ environment variable

Detailed explanation of FLV format

LeetCode 1584. Minimum cost of connecting all points

字节跳动春招攻略:学长学姐笔经面经,还有出题人「锦囊」
随机推荐
Redis standalone startup
LeetCode 1560. The sector with the most passes on the circular track
LeetCode1556. Thousand separated number
~78 radial gradient
Chapter III principles of MapReduce framework
7-6 sum of combinatorial numbers
Eureka single machine construction
字节跳动春招攻略:学长学姐笔经面经,还有出题人「锦囊」
Fdog series (I): think about it. It's better to write a chat software. Then start with the imitation QQ registration page.
Conception du système de thermomètre numérique DS18B20
~79 Movie card exercise
Some instructions on whether to call destructor when QT window closes and application stops
Fdog series (V): use QT to imitate QQ to realize login interface to main interface, function chapter.
Ffmpeg command line use
7-12 inventory code base
Shell_ 07_ Functions and regular expressions
Solr standalone installation
~81 long table
登陆验证koa-passport中间件的简单使用
JS encapsulates the method of array inversion -- Feng Hao's blog