What does JL mean in at&t syntax?

不羁岁月 提交于 2019-12-06 21:34:24
Coffee

That is assemply language , JL is Jump if Less

This also works in x86 assembly language.

 CMP %eax,%ebx 
 JL L1

We compare EAX to EBX, then we'll jump to L1 depending on that comparison.

More specific - If the contents of EAX are less than the contents of EBX, jump to the label L1

See - Assembly - JG/JNLE/JL/JNGE after CMP

Unfortunately, I can't comment due to low reputation. However, the above answers are not fully correct.

The information that the code is given in AT&T syntax is crucial to give the correct answer, since the operands are switched in AT&T syntax. In fact, what the code

CMP %eax,%ebx
JL L1

interpreted in AT&T syntax does is: "If the contents of EBX are less than the contents of EAX, jump to the label L1" - and not the other way round as mentioned before.

jl (jump on less than, signed) wiki

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!