PS2SDK
PS2 Homebrew Libraries
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 #ifndef __DEBUG_H__
17 #define __DEBUG_H__
18 
19 #include <tamtypes.h>
20 #include <stdarg.h>
21 
22 #define DEBUG_BGCOLOR(col) *((u64 *) 0x120000e0) = (u64) (col)
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 extern void init_scr(void);
29 extern void scr_printf(const char *, ...) __attribute__((format(printf,1,2)));
30 extern void scr_vprintf(const char *format, va_list opt);
31 extern void scr_putchar(int x, int y, u32 color, int ch);
32 extern void ps2GetStackTrace(unsigned int* results,int max);
33 extern void scr_setXY(int x, int y);
34 extern int scr_getX(void);
35 extern int scr_getY(void);
36 extern void scr_clear(void);
37 extern void scr_clearline(int Y);
38 extern void scr_clearchar(int X, int Y);
39 extern void scr_setbgcolor(u32 color);
40 extern void scr_setfontcolor(u32 color);
41 extern void scr_setcursorcolor(u32 color);
42 extern void scr_setCursor(int enable);
43 extern int scr_getCursor(void);
44 #ifdef __cplusplus
45 }
46 #endif
47 
48 #endif /* __DEBUG_H__ */
tamtypes.h
__attribute__
Definition: gif_registers.h:38