sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
debug.h
Go to the documentation of this file.
1/*
2# _____ ___ ____ ___ ____
3# ____| | ____| | | |____|
4# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5#-----------------------------------------------------------------------
6# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7# Licenced under Academic Free License version 2.0
8# Review ps2sdk README & LICENSE files for further details.
9*/
10
16
17#ifndef __DEBUG_H__
18#define __DEBUG_H__
19
20#include <tamtypes.h>
21#include <stdarg.h>
22
23#define DEBUG_BGCOLOR(col) *((u64 *) 0x120000e0) = (u64) (col)
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29extern void init_scr(void);
30extern void scr_printf(const char *, ...) __attribute__((format(printf,1,2)));
31extern void scr_vprintf(const char *format, va_list opt);
32extern void scr_putchar(int x, int y, u32 color, int ch);
33extern void ps2GetStackTrace(unsigned int* results,int max);
34extern void scr_setXY(int x, int y);
35extern int scr_getX(void);
36extern int scr_getY(void);
37extern void scr_clear(void);
38extern void scr_clearline(int Y);
39extern void scr_clearchar(int X, int Y);
40extern void scr_setbgcolor(u32 color);
41extern void scr_setfontcolor(u32 color);
42extern void scr_setcursorcolor(u32 color);
43extern void scr_setCursor(int enable);
44extern int scr_getCursor(void);
45extern void scr_change_defaultcolor(int index, u32 color);
46#ifdef __cplusplus
47}
48#endif
49
50#endif /* __DEBUG_H__ */