to be exact here the routines used in the two version.
its a assembler code build-in in the c-source.
here the functions:
m68k:
static void delay(ULONG loops)
{
__asm__ __volatile__ ("\n\tmovel %0,%/d0\n1:\tsubql #1,%/d0\n\t"
"bpls 1b\n"
: /*no outputs*/
: "g" (loops)
: "d0");
}
ppc:
static void delay(ULONG loops)
{
__asm volatile ("cmpwi 0,%0,0\n\t"
"mtctr %0\n\t"
"beqlr\n\t"
".loop: bdnz .loop"
:
: "r" (loops)
: "cc");
}
hope this is clear now
naTmeg,