ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
#include <stdio.h>
#include <tamtypes.h>
#include <sifcmd.h>
#include <kernel.h>
#include <osd_config.h>
#include <stdarg.h>
#include <debug.h>
Go to the source code of this file.
Data Structures | |
struct | t_setupscr |
struct | t_setupchar |
Functions | |
static int | debug_detect_signal () |
static void | Init_GS (int interlace, int omode, int ffmd) |
static void | SetVideoMode (void) |
static void | Dma02Wait (void) |
static void | DmaReset (void) |
static void | progdma (void *addr, int size) |
void | scr_setbgcolor (u32 color) |
void | init_scr (void) |
void | scr_putchar (int x, int y, u32 color, int ch) |
static void | clear_line (int Y) |
void | scr_printf (const char *format,...) |
void | scr_setXY (int x, int y) |
int | scr_getX () |
int | scr_getY () |
void | scr_clear () |
Variables | |
static short int | X = 0 |
static short int | Y = 0 |
static short int | MX =80 |
static short int | MY =40 |
static u32 | bgcolor = 0 |
u8 | msx [] |
EE UGLY DEBUG ON SCREEN
Definition in file scr_printf.c.
|
static |
Definition at line 245 of file scr_printf.c.
References bgcolor, MX, scr_putchar(), and Y.
Referenced by scr_clear(), and scr_printf().
|
static |
Definition at line 48 of file scr_printf.c.
References GetRomName().
Referenced by init_scr().
|
inlinestatic |
|
static |
Definition at line 123 of file scr_printf.c.
Referenced by init_scr().
|
static |
Definition at line 55 of file scr_printf.c.
References GsPutIMR(), and SetGsCrt().
Referenced by init_scr().
void init_scr | ( | void | ) |
Definition at line 185 of file scr_printf.c.
References debug_detect_signal(), Dma02Wait(), DmaReset(), Init_GS(), progdma(), SetVideoMode(), X, and Y.
Referenced by main().
|
inlinestatic |
Initiates a normal-mode DMA transfer over the GIF.
addr | The address of the data to be transfered, which must be 16 byte aligned. |
size | The size (in 16 byte quads) of the data to be transfered. |
Definition at line 163 of file scr_printf.c.
Referenced by init_scr(), and scr_putchar().
void scr_clear | ( | void | ) |
Definition at line 313 of file scr_printf.c.
References clear_line(), MY, scr_setXY(), and y.
Referenced by main().
int scr_getX | ( | void | ) |
int scr_getY | ( | void | ) |
void scr_printf | ( | const char * | format, |
... | |||
) |
Definition at line 252 of file scr_printf.c.
References clear_line(), MX, MY, scr_putchar(), X, and Y.
Referenced by ethPrintIPConfig(), ethPrintLinkStatus(), and main().
void scr_putchar | ( | int | x, |
int | y, | ||
u32 | color, | ||
int | ch | ||
) |
Definition at line 210 of file scr_printf.c.
References bgcolor, Dma02Wait(), msx, progdma(), UNCACHED_SEG, x, and y.
Referenced by clear_line(), and scr_printf().
void scr_setbgcolor | ( | u32 | color | ) |
void scr_setXY | ( | int | x, |
int | y | ||
) |
|
static |
|
static |
Definition at line 26 of file scr_printf.c.
Referenced by clear_line(), CreateSave(), scr_putchar(), and scr_setbgcolor().
|
extern |
Definition at line 18 of file font.c.
Referenced by scr_putchar().
|
static |
Definition at line 25 of file scr_printf.c.
Referenced by clear_line(), and scr_printf().
|
static |
Definition at line 25 of file scr_printf.c.
Referenced by scr_clear(), and scr_printf().
|
static |
Definition at line 24 of file scr_printf.c.
Referenced by init_scr(), scr_getX(), scr_printf(), and scr_setXY().
|
static |
Definition at line 24 of file scr_printf.c.
Referenced by clear_line(), init_scr(), scr_getY(), scr_printf(), and scr_setXY().