Login
Remember
Register
Questions
Hot!
Categories
Ask a Question
Ask a Question
How do you implement boolean return values (true/false) from commands like x < y, x > y, etc. in assembler?
0
votes
asked
Sep 25, 2022
in
General Knowledge
by
iskralawrence
(
773k
points)
How do you implement boolean return values (true/false) from commands like x < y, x > y, etc. in assembler?
Facebook
Twitter
LinkedIn
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
1
Answer
0
votes
answered
Sep 25, 2022
by
iskralawrence
(
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.
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Welcome to the Answerine , a great place to find, read and share your favorite questions and answers.
Related questions
0
votes
1
answer
w SnO2 + x H2 ---------> y Sn + z H2O For which of the following values of w, x, y and z will the equation above be balanced?
asked
Oct 21, 2022
in
General Knowledge
by
iskralawrence
(
773k
points)
0
votes
1
answer
40% persons read newspaper X and 50% persons read newspaper Y. 10% persons read both newspapers. How many persons do not read any of the newspapers ?
asked
Oct 21, 2022
in
General Knowledge
by
iskralawrence
(
773k
points)
0
votes
1
answer
Like blood, lymph flows both to and from the heart. True/False
asked
Oct 10, 2022
in
General Knowledge
by
iskralawrence
(
773k
points)
0
votes
1
answer
True/False: Assembler Language was developed before Machine Language.
asked
Oct 3, 2022
in
General Knowledge
by
mia2023
(
289k
points)
0
votes
1
answer
True/False: The Assembler language was an early step towards abstraction that allowed programmers to use symbols for machine instructions and not binary numbers?
asked
Oct 3, 2022
in
General Knowledge
by
monikakim
(
557k
points)
...