GP32 Asm In Devkitadv


Franxis

MAME 4 ALL
Joined
Aug 22, 2004
Messages
788
Age
49
Location
Spain
Website
franxis.zxq.net
I'm trying to enter some "nop" asm codes into my GP32 MAME port, but the compiler seems to don't like this (GCC 3.02).
I the C source code i have tried things like asm("nop"); or asm volatile {..., without success.
Is there any way to enter assembly into the C code in GCC 3.02?

Regards.
 
yup,

asm volatile("<instruction>");

Should do the trick. But I don't think NOP is a valid assembler command for the ARM processor, although I might be wrong, as I've not checked.

You should really upgrade to GCC 3.4 though. It's much improved, lot less bugs, generated code is faster, etc.
 
I have tried gcc 3.4, but there are a lot of warning messages in the compilation, and after when running ghosts'n goblins i.e. the GP32 resets after a while...

I would like to have gcc 3.04, because gcc 3.02 maybe does not support asm inline in C code...
 
I have tried asm volatile ("nop"); and the result is the same:
"parse error before volatile".

Any suggestion?

Regards.
 
Back
Top