This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: $ in GNU as assembler


>
>
>     What is the meaning of $ in the GNU as assembler when it is prefixed
>to a number. For example, what is the difference between
>
A $ prefixing a number means an immediate constant, as opposed to a 
memory address.

>mov     $0x53, %al
>
Move the value 0x53 to the %al register.

>mov     0x53, %al
>
Move the byte at memory address 0x53 (0x00000053) to the %al register.

Laurent Pinchart



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]