Does referencing constants without a dollar sign have a distinct meaning?

前端 未结 2 904
野的像风
野的像风 2021-01-22 05:41

I wrote:

mov 60, %rax

GNU as accepted it, although I should have written

mov $60, %rax

Is there

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-22 06:36

    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.

提交回复
热议问题