Login
Remember
Register
Questions
Hot!
Categories
Ask a Question
Ask a Question
Are any of these valid instructions? movb (%rax),%al movl (%ecx),%eax movq (%ecx),%rax
0
votes
asked
Sep 25, 2022
in
General Knowledge
by
iskralawrence
(
773k
points)
Are any of these valid instructions?
movb (%rax),%al
movl (%ecx),%eax
movq (%ecx),%rax
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
1) Yes, take 1 byte from value at address in rax and copy it into al.
2) No, cannot get address from 4 byte register.
3) No, cannot get address from 4 byte 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
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
What does movb 24(%rax,%rcx,4), %dl do? Why does this work?
asked
Sep 25, 2022
in
General Knowledge
by
iskralawrence
(
773k
points)
0
votes
1
answer
What does the mov instruction do? When using mov, the ____, _____, and ____ all must match. What does movq %rax, %rbx do?
asked
Sep 25, 2022
in
General Knowledge
by
iskralawrence
(
773k
points)
0
votes
1
answer
Which two suffixes for pop and push are not valid instructions in x86-64?
asked
Sep 25, 2022
in
General Knowledge
by
iskralawrence
(
773k
points)
0
votes
1
answer
Which of these is a valid conclusion that can be drawn from the table?
asked
Oct 21, 2022
in
General Knowledge
by
iskralawrence
(
773k
points)
...