Question: Hello, I am struggling with this understanding Assembly x86, why are the 2nd and 7th instructions wrong. Mismatch between instruction suffix and register ID doesn't
Hello, I am struggling with this understanding Assembly x86, why are the 2nd and 7th instructions wrong.Mismatch between instruction suffix and register ID doesn't really "register" with me :D.
I also don't understand why I cannot use %ebx as the address register.I'm assuming if you input an immediate value into a dereferenced register you should be fine.Why is my thinking false?
Practice 2 Each of the following lines of code generates an error message when we invoke the assembler. Explain what is wrong with each line. ( for x86-64) movb $0xF, (%ebx) Cannot use %ebx as address register movl %rax, (%rsp) Mismatch between instruction suffix and register ID movw (%rax),4(%rsp) Cannot have both source and destination be memory reference movb%al, %s! movl %eax, $0x123 Cannot have immediate as destination movl %eax, %dx movb %si, 8(%rbp) Mismatch between instruction suffix and register ID No register named %s! Destination operand incorrect size
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
