Simple question about powerpc asm.
Wolfgang Denk
wd at denx.de
Sat Jul 18 22:54:52 EST 2009
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
;-)
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Emotions are alien to me. I'm a scientist.
-- Spock, "This Side of Paradise", stardate 3417.3
More information about the Linuxppc-dev
mailing list