Help from Kernel Gurus needed!!!

Geert Uytterhoeven Geert.Uytterhoeven at cs.kuleuven.ac.be
Tue Jan 26 08:27:43 EST 1999


On Mon, 25 Jan 1999, David Edelsohn wrote:
> 	If you are just trying to copy r1 into r0, why not use move
> regsiter instead of add immediate as the following:
> 
> 	__asm__ ("mr %0,1" : "=r" (p) : );

Hehe, the clue is that IBM/Motorola didn't implement instructions that perform
operations that can be done in a different manner, too.

`mr' is just an alias for add with zero.

Greetings,

						Geert

--
Geert Uytterhoeven                     Geert.Uytterhoeven at cs.kuleuven.ac.be
Wavelets, Linux/{m68k~Amiga,PPC~CHRP}  http://www.cs.kuleuven.ac.be/~geert/
Department of Computer Science -- Katholieke Universiteit Leuven -- Belgium


[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to  Cc linuxppc-dev  if your ]]
[[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]]
[[ the message 'unsubscribe' to linuxppc-dev-request at lists.linuxppc.org ]]




More information about the Linuxppc-dev mailing list