Login
Remember
Register
Questions
Hot!
Categories
Ask a Question
Ask a Question
What does the mov instruction do? When using mov, the ____, _____, and ____ all must match. What does movq %rax, %rbx do?
0
votes
asked
Sep 25, 2022
in
General Knowledge
by
iskralawrence
(
773k
points)
What does the mov instruction do?
When using mov, the ____, _____, and ____ all must match.
What does movq %rax, %rbx do?
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
The mov instruction copies a value from one location (operand 1) to another location (operand 2).
Instruction suffix, size of operand 1, and size of operand 2 must all match. This is consistent with what the compiler expects on both sides of the equals sign in C.
Copies 8 bytes from rax to rbx.
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
Can you do memory-memory transfer with a single mov instruction?
asked
Sep 25, 2022
in
General Knowledge
by
iskralawrence
(
773k
points)
0
votes
1
answer
pushq %rbp movq %rsp, %rbp subq $520, %rsp leaq (%rsp), %rbx movl $0x0,(%rbx) What are the different ways the array could have been declared? Which was it?
asked
Sep 25, 2022
in
General Knowledge
by
iskralawrence
(
773k
points)
0
votes
1
answer
Are any of these valid instructions? movb (%rax),%al movl (%ecx),%eax movq (%ecx),%rax
asked
Sep 25, 2022
in
General Knowledge
by
iskralawrence
(
773k
points)
0
votes
1
answer
When creating a keyword list using broad match, why should you leave out misspellings and plural forms of keywords?
asked
Sep 25, 2022
in
General Knowledge
by
iskralawrence
(
773k
points)
misspellings
and
plural
forms
of
keywords
0
votes
1
answer
_____ is the Tax year end for federal income taxes. Individual tax returns must be filed by ____
asked
Oct 28, 2022
in
General Knowledge
by
iskralawrence
(
773k
points)
...