Subject: Re: Simple question about powerpc asm.

From: Valentine <[email-masked]>
Date: Sat, 18 Jul 2009 17:55:35 +0400

Wolfgang Denk wrote:
> Dear Valentine,
> 
> In message <[email-masked]> 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