0 votes
in General Knowledge by (773k points)
How do you implement boolean return values (true/false) from commands like x < y, x > y, etc. in assembler?

1 Answer

0 votes
by (773k points)
 
Best answer
Use setX. setX only sets the last byte of the register to either 0 or 1 based on the condition suffix.

Once setX is used, movzbq the result into the whole register.
Welcome to the Answerine , a great place to find, read and share your favorite questions and answers.
...