mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
* match func_80025510 * two function done * update score * some non matchings * update score * format and update score
22 lines
474 B
C
22 lines
474 B
C
#include "memory.h"
|
|
|
|
#ifdef __sgi
|
|
/**
|
|
* Uses IDO specific -dollar compiler flag to get the current stack pointer.
|
|
* Official Name: diCpuTraceCurrentStack
|
|
*/
|
|
StackInfo *stack_pointer(void) {
|
|
return (StackInfo *) __$sp;
|
|
}
|
|
#else
|
|
/**
|
|
* Uses GCC specific code to get the current stack pointer.
|
|
* Official Name: diCpuTraceCurrentStack
|
|
*/
|
|
StackInfo *stack_pointer(void) {
|
|
register StackInfo *sp;
|
|
asm volatile("move %0, $sp\n" : "=r"(sp));
|
|
return sp;
|
|
}
|
|
#endif
|