Sdw
Member
I'm trying to compile Mr.Spivs MMUChange function, but can't get it to compile:
The compiler complains that it doesn't recognize the "asm" keyword. I'm using devkitadv.
Code:
void C_MMUChange( void *StartBlock, void *EndBlock, int Flag ) {
asm volatile(""
"mov r0,%0 \n"
"mov r1,%1 \n"
"mov r2,%2 \n"
"swi #0x02 \n"
:
: "r" (StartBlock), "r" (EndBlock), "r" (Flag)
: "r0", "r1", "r2"
);
}
The compiler complains that it doesn't recognize the "asm" keyword. I'm using devkitadv.