So I have a bit of assembly I got by doing objdump on a binary given to me. It has the following line
movabs $0xcccccccccccccccd,%rdx
I modeled my own assembly after this and got an error.
I am trying to write my own assembly file and turn it into an object so that I can get the byte code for the assembly. Unfortunately every time I try to compile with gcc -c code.s
I get the following message Error: operand size mismatch for
movabs'` which confuses me as I literally modeled my assembly after other assembly code on my machine.
Here is the assembly:
movq 0x602308,%rdx
movabs $0x4d0ddd6dddd95b2g,(%rdi)
Essentially I am trying to set the value at address 0x602308 to the constant in line 2.