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
1.4m articles
1.4m replys
5 comments
57.0k users