PPC Register classification
r0 | local | commonly used to hold the old link register when building the stack frame |
r1 | dedicated | stack pointer |
r2 | dedicated | table of contents pointer |
r3 | local | commonly used as the return value of a function, and also the first argument in |
r4–r10 | local | commonly used to send in arguments 2 through 8 into a function |
r11–r12 | local | |
r13–r31 | global | |
lr | dedicated | link register; cannot be used as a general register. Use mflr (move from link register) or mtlr (move to link register) to get at, e.g., mtlr r0 |
cr | dedicated | condition register |
More :http://www.csd.uwo.ca/~mburrel/stuff/ppc-asm.html
Comments