Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/tools/src/game/crash.h
7861 views
1
#ifndef _CRASH_H_
2
#define _CRASH_H_
3
4
#include <types.h>
5
6
#define CRASH_SCREEN_INCLUDED 1
7
8
extern u32 cop0_get_cause(void);
9
extern u32 cop0_get_epc(void);
10
extern u32 cop0_get_badvaddr(void);
11
12
extern void _n64_assert(const char* pFile, int nLine, const char *pExpression, int nStopProgram);
13
14
extern u8 __crash_handler_entry[];
15
16
void show_crash_screen_and_hang(void);
17
u8 ascii_to_idx(char c);
18
void fb_set_address(void *address);
19
void fb_swap(void);
20
void fb_fill(int baseX, int baseY, int width, int height);
21
void fb_draw_char(int x, int y, u8 idx);
22
void fb_draw_char_shaded(int x, int y, u8 idx);
23
int fb_print_str(int x, int y, const char *str);
24
int fb_print_uint(int x, int y, u32 value);
25
void fb_print_int_hex(int x, int y, u32 value, int nbits);
26
void fb_print_gpr_states(int x, int y, const char* regStrs[], u32 *regContext);
27
28
#endif /* _CRASH_H_ */
29
30