Port-powerpc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Port amigappc
Ingrid:
On Sat, Jan 06, 2007 at 11:54:52AM +0100, Ignatios Souvatzis wrote:
> On Sat, Jan 06, 2007 at 09:50:12AM +0100, Frank Wille wrote:
> There's a load high (or was it or to high) instruction in the PPC
> instruction set, and you can tell the assembler/linker to put the
> high part of the address in there. There are examples.
Here's the syntax - that's from gcc output, btw:
lis 3,0x00dff180@h
ori 3,3,0x00dff180@l
load immediate shifted (by 16 bit), @h is high part of the symbol.)
followed by or immediate symbol@l, that is lower 16 bit.
Works fine with symbols; the assembler and linker know how to handle
and relocate them.
All RISCy CPUs have at least one instruction pair with this property...
Regards,
-is
--
seal your e-mail: http://www.gnupg.org/
Home |
Main Index |
Thread Index |
Old Index