I wrote:
mov 60, %rax
GNU as accepted it, although I should have written
as
mov $60, %rax
Is there any difference between two such calls?
Yes; the first loads the value stored in memory at address 60 and stores the result in rax, the second stores the immediate value 60 into rax.
rax
2.1m questions
2.1m answers
60 comments
57.0k users