Is it safe to do two consecutive jumps in the assembly?
source link: https://www.codesd.com/item/is-it-safe-to-do-two-consecutive-jumps-in-the-assembly.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Is it safe to do two consecutive jumps in the assembly?
I'm new to assembly language and it is going well for me, however, a question has got my mind, as long as the result of a comparison is stored in %eflags
register, can I put two consecutive conditional jumps and expect the result I want?
Example:
cmpl %eax, %ebx
je label1
jl label2 # Is this safe? Is this the right way to do this?
is it safe, yes. Is it the right or wrong way to do this? Sometimes it can be done in fewer instructions, you have to understand the flags, and unsigned vs signed affect on the flags (Then you can choose the right conditional branch).
Related Articles
Get the two consecutive dates with the greatest period between them
How do I find two consecutive lines with the same pattern
How to check that the two consecutive words have the same regex pattern
ArrayIndexOutOfBoundsException while finding the maximum difference between two consecutive elements in the array
List of directories that contain two consecutive vowels in the name. Linux terminal command
how to read two consecutive commas from the .csv file format as a single value in Java
Regex looks for two consecutive lines if the second does not start with a given word
Why can not an instruction include two memory references in the assembly?
By counting how long the order of two consecutive numbers in a file is reversed in a second file in BASH
Updating two consecutive text views using threads
Preg_match only accepts two consecutive lowercase letters
Compare two consecutive elements in std :: list
Regular expression not to allow two consecutive special characters
replace two consecutive rows according to a pattern and repeat the file
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK