Simple question about powerpc asm.
Valentine
vbarshak at ru.mvista.com
Sat Jul 18 23:55:35 EST 2009
Wolfgang Denk wrote:
> Dear Valentine,
>
> In message <4A61A48D.8060601 at ru.mvista.com> you wrote:
>> PowerPC instructions are 32-bit long. So, there are only 16 bits
>> available within the instruction for constant values. Since address can
>> be up to 64 bits, we have to load it a piece at a time. The "@" within
>> the assembler instruct it to give a specially-processed form of a symbol
>> value:
>>
>> @highest -- refers to bits 48-63 of a constant
>> @higher -- refers to bits 32-47 of a constant
>> @h -- refers to bits 16-31 of a constant
>> @l -- refers to bits 0-15 of a constant
>
> Actually these bit numbers are wrong, as bit 0 is the MSB for PowerPC
> ;-)
All right, you got me ;)
Even copy-pasting from the IBM docs, one has to double-check :)
Regards,
Val.
>
> Best regards,
>
> Wolfgang Denk
>
More information about the Linuxppc-dev
mailing list