resonance 1.0.1
Loading...
Searching...
No Matches
devconsole.h File Reference

Go to the source code of this file.

Functions

int Gs_Initialize ()
 Bring up the GS for the debug console, independently of GfxDevice.
void InitDevConsole ()
 Create the debug console of 75 columns by 30 rows and clear it, without touching the GS.
void ClearDebugConsole ()
 Clear every cell of the debug console.

Function Documentation

◆ Gs_Initialize()

int Gs_Initialize ( )

Bring up the GS for the debug console, independently of GfxDevice.

Resets VIF0, VU0, the GS path, and the DMA controller, sets the channel mask of the DMA settings to the VIF1 bit, enables tag transfer on the VIF1 channel, and resets the GS to interlaced NTSC in frame mode. It then fills a 640 by 224 SDK double buffer with a clear colour of (0x40, 0x40, 0x80), sends a default alpha environment through a VIF1 DIRECT packet built in scratchpad memory, and waits until sceGsSyncV() reports field 1. InitDebugPrinting() is the only caller.

Returns
Always 1, which the caller discards.
Ghidra address:
NTSC-U/C: 0x005e5d08
Ghidra address:
PAL: 0x00627ec8

◆ InitDevConsole()

void InitDevConsole ( )

Create the debug console of 75 columns by 30 rows and clear it, without touching the GS.

The routine is InitDebugPrinting() without its call to Gs_Initialize(). No caller remains in the shipped program.

Ghidra address:
NTSC-U/C: 0x005e5ed8
Ghidra address:
PAL: 0x00628098

◆ ClearDebugConsole()

void ClearDebugConsole ( )

Clear every cell of the debug console.

No caller survives in the shipped program. The name is inferred.

Ghidra address:
NTSC-U/C: 0x005e5f60
Ghidra address:
PAL: 0x00628148