0

In the instruction "movl $0x400,%eax" Does $0x400 refer to the address or the hexadecimal value of the number?

Jester
  • 56,577
  • 4
  • 81
  • 125
  • 4
    The `$` means immediate. So it's a number. It's not a property of `0x400` itself. If you wrote `mov 0x400, %eax` (without the `$`) it would be a read from memory at address 0x400. – Jester Oct 25 '21 at 22:53
  • `0x400` is a numeric literal. Your question title left out the `$` that's necessary in that context (as an instruction operand) to indicate an immediate instead of a memory operand. – Peter Cordes Oct 26 '21 at 02:34
  • Okay, I got it; thanks a lot for the response. – Shubham Lal Oct 27 '21 at 00:24

0 Answers0