You've already forked smb-decomp
mirror of
https://github.com/encounter/smb-decomp.git
synced 2026-03-30 11:38:28 -07:00
74e69e9c7e
* Rename stcoli functions * Add gen_compile_commands.py script * Add shebang * gen_compile_commands: pretend to be GCC * Separately compilable game headers * Separately compilable system dolphin headers * Remove stcoli changes from this PR * Fix EOF newlines
31 lines
682 B
C
31 lines
682 B
C
#ifndef _DOLPHIN_OSCONTEXT_H_
|
|
#define _DOLPHIN_OSCONTEXT_H_
|
|
|
|
#include <dolphin/types.h>
|
|
|
|
typedef struct OSContext
|
|
{
|
|
/*0x000*/ u32 gpr[32];
|
|
/*0x080*/ u32 cr;
|
|
/*0x084*/ u32 lr;
|
|
/*0x088*/ u32 ctr;
|
|
/*0x08C*/ u32 xer;
|
|
/*0x090*/ f64 fpr[32];
|
|
/*0x190*/ u32 fpscr_pad;
|
|
/*0x194*/ u32 fpscr;
|
|
/*0x198*/ u32 srr0;
|
|
/*0x19C*/ u32 srr1;
|
|
/*0x1A0*/ u16 mode;
|
|
/*0x1A2*/ u16 state;
|
|
/*0x1A4*/ u32 gqr[8];
|
|
/*0x1C4*/ f64 psf[32];
|
|
} OSContext;
|
|
|
|
u32 OSGetStackPointer(void);
|
|
void OSDumpContext(OSContext *context);
|
|
void OSLoadContext(OSContext *context);
|
|
void OSClearContext(OSContext *context);
|
|
void OSSetCurrentContext(OSContext *context);
|
|
|
|
#endif
|