sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
main.c
1#include <stdio.h>
2#include <string.h>
3#include <kernel.h>
4#include <crashscreen.h>
5
6int kputs(char *s);
7
8static void hook(const char *report)
9{
10 int ok = strstr(report, "Breakpoint") && strstr(report, "PC=") && strstr(report, "BadVAddr=");
11 kputs(ok ? "crash-break: PASS\n" : "crash-break: FAIL report\n");
12}
13
14static int trigger(void)
15{
16 __asm__ volatile("break"); return 0;
17}
18
19int main(void)
20{
23 int r = trigger();
24 kputs("crash-break: FAIL no exception\n");
25 SleepThread();
26 return r;
27}
void crashscreen_set_hook(crashscreen_hook_t hook)
void crashscreen_install(void)