当前位置:网站首页>Control transfer instruction
Control transfer instruction
2022-07-06 17:02:00 【My71】
skill
- Z or E be equal to
- G or A Greater than
- L or B Less than
- All jump instructions are in J start
Conditional jump instructions
- be equal to JZ
- It's not equal to JNZ
- Greater than JG or JNLZ
- Less than JL or JNGZ
- Greater than or equal to JGZ or JNL
- Less than or equal to JLZ or JNG
Jump unconditionally JMP
……
start:
……
jmp start
Cyclic instruction Loop
The initial value of the cycle can only be used cx register .
grammar
mov cx,100 start: …… loop start
Each cycle cx Value auto decrement , know cx The value is 0 End cycle at .
Program encapsulation
Define subroutine pseudo instructions
- Start :proc
- end :endp
Call Subroutine instructions :call
attribute
- Far attribute instruction :far
- Near attribute instruction :near
Return to the main program instruction :ret
grammar : Define a name Program
name proc near Procedural body ret name endp
Code demonstration
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
边栏推荐
- 唯有学C不负众望 TOP4 S1E6:数据类型
- ~78 radial gradient
- Shell_ 00_ First meeting shell
- Install docker under windows10 (through Oracle VM VirtualBox)
- DS18B20数字温度计系统设计
- How to generate six digit verification code
- Activiti directory (I) highlights
- Shell_ 07_ Functions and regular expressions
- Erlang installation
- Eureka single machine construction
猜你喜欢
随机推荐
我走过最迷的路,是字节跳动程序员的脑回路
Fdog series (III): use Tencent cloud SMS interface to send SMS, write database, deploy to server, web finale.
[unsolved] 7-15 shout mountain
Activit fragmented deadly pit
Typescript basic operations
~71 abbreviation attribute of font
Resume of a microservice architecture teacher with 10 years of work experience
Shell_ 00_ First meeting shell
这116名学生,用3天时间复刻了字节跳动内部真实技术项目
~78 radial gradient
The daemon thread starts redis and modifies the configuration file
~79 Movie card exercise
Shell_ 07_ Functions and regular expressions
DS18B20數字溫度計系統設計
Many papers on ByteDance have been selected into CVPR 2021, and the selected dry goods are here
Shell_ 06_ Judgment and circulation
~85 transition
Cartesian tree (modified)
Fdog series (4): use the QT framework to imitate QQ to realize the login interface, interface chapter.
was unable to send heartbeat