How do you decide when do you use which jump statement...statements such as JG JNLE JNC can do the same job how do you differentiate them?
The jumps you mention are all jumps on condition code values.
JG and JNLE are the same: they have the same opcode and do the same thing. One is "jump if greater than", and the other is "jump if not less than or equal to". Think about it. These are signed branches, that means they take the sign flag into account when determining whether to branch.
JNC means "jump if no carry". It will jump if the carry flag is not set. Carry is often used to detect arithmetic overflow, for example when adding 2 unsigned integers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With