Search found 3 matches

by Inline
Sun Jan 20, 2008 10:43 am
Forum: PSP Development
Topic: Inline ASM
Replies: 4
Views: 1550

Thank you very much hlide, It works as I want.(With just moving the "move %0, $ra" up to the "jal") In fact it's just for learning and fun, a temporary situation, time for me to translate everything to ASM. I want be able to test before moving everything. Thanks again for your ad...
by Inline
Sat Jan 19, 2008 11:36 pm
Forum: PSP Development
Topic: Inline ASM
Replies: 4
Views: 1550

Thank you for the answer hlide.
I now succeed to call my functions.

Do you have a idea for arguments ?
I looked at the disassembly (compiled with gcc). It seems random registers are used to pass arguments.
by Inline
Sat Jan 19, 2008 8:01 pm
Forum: PSP Development
Topic: Inline ASM
Replies: 4
Views: 1550

Inline ASM

Hi ! I'm playing with a C program which I want to move some parts to inline ASM. I'm trying to call C functions from ASM, I've tried something like this : void doSomeStuff() { //.......; } void test() { void (*pFunction)&...