외로운 Nova의 작업실

Assembly 언어 공부 - 22(점프 명령어 이론) 본문

Programming/Assembly

Assembly 언어 공부 - 22(점프 명령어 이론)

Nova_ 2022. 8. 25. 18:04

안녕하세요. 이번 시간에는 점프 명령어에대해서 정리해보도록 하겠습니다.

 

- 특정 플래그 값에 따르는 점프

 

니모닉 설명 플래그/레지스터
JZ Jump if zero ZF = 1
JNZ Jump if not not zero ZF = 0
JC Jump if carry CF = 1
JNC Jump if not carry CF = 0
JO Jump if overflow OF = 1
JNO Jump if not overflow OF = 0
JS Jump if signed SF = 1
JNS Jump if not signed SF = 0
JP Jump if parity PF = 1
JNP Jump if not parity PF = 0

 

- 동등 비교에 따르는 점프

 

니모닉 설명
JE Jump if equal(leftOP = rightOP)
JNE Jump if not equal
JCXZ Jump if CX = 0
JECXZ Jump if ECX = 0

 

- 부호없는 비교에 따르는 점프

 

니모닉 설명
JA Jump if above
JNBE Jump if not below or equal
JAE Jump if above or equal
JNB Jump if not below
JB Jump if not above or equal
JNAE Jump if not above or equal
JBE Jump if below or equal
JNA Jump if not above

 

 

- 부호있는 비교에 따르는 점프

 

니모닉 설명
JG Jump if greater
JNLE Jump if not less than or equal
JGE Jump if greater than or equal
JNL Jump if not less
JL Jump if less
JNGE Jump if not greater than or equal
JLE Jump if less than or equal
JNG Jump if not greater
Comments