- 论坛徽章:
- 3
|
回复 20# folklore
no. both- movl %cr3, %eax
- movq %cr3, %rax
复制代码 are valid is right.
but, I think how many bytes are moved is not decided by movl or movq. it's decided by the oprand %eax or %rax. once the oprand has been decided, the instructions decided -- ref to my qoute, prefix is ignored, so movl %cr3, %eax and movq %cr3, %rax have different opcode. but, you also should use movl and movq -- because the compiler need it.
oh. it seems a little complex. I don't know if I've explained clearly. and, -- Just I think so, hum... hoho. |
|