View Single Post
Old 13 January 2020, 23:17   #6
PPC Hacker

Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 1,359
Originally Posted by phx View Post
But to minimize assembler usage you could either use the __saveall attribute, which also saves/restores all (used) volatile registers, or insert inline-assembler to save them: __asm("\tstw\tr4,offset(r1)");
I have opted to make parts of the exception code in asm. Can you confirm i can use any volatile register I want (r3-r12) inside the asm code without trashing stuff? And non-volatile (r13-r31) are saved on the stack before jumping to a(n asm) function? @phx.
Hedeon is offline  
Page generated in 0.07242 seconds with 11 queries