This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <std/mem.pat> | |
using GSDumpHeader_New; | |
using GSRegisterCommand; | |
using GSVsyncCommand; | |
using GSTransferCommand; | |
using GSReadFIFOCommand; | |
using FreezeData; | |
enum DumpTag : u8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <tamtypes.h> | |
#include <kernel.h> | |
#include <stdio.h> | |
#include <ee_regs.h> | |
// Required due to an issue with ps2links reset | |
void _libcglue_timezone_update(void) {} | |
int main() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
val = int(sys.argv[1], 16) | |
r = val & 0xff | |
r = r >> 3 | |
g = (val >> 8) & 0xff | |
g = g >> 3 | |
b = (val >> 16) & 0xff | |
b = b >> 3 | |
ct16 = (b << 10) | (g << 5) | (r) | (((val >> 24) & 1) << 15) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <graph.h> | |
#include <dma.h> | |
#include <gs_psm.h> | |
#include <gs_gp.h> | |
#include <draw.h> | |
#include <kernel.h> | |
#include "memmap.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <kernel.h> | |
#include <stdio.h> | |
#include <graph.h> | |
#define INTC_STAT (*(volatile u32 *)0x1000F000) | |
#define GSCSR (*(volatile u64 *)0x12001000) | |
#define SYNCV (*(volatile u64 *)0x12000060) | |
#define SMODE1 (*(volatile u64 *)0x12000010) | |
static inline void wait_intc_vsync() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Provides a testing suite for sub pixel offsets with UV mapping | |
#include <kernel.h> | |
#include <stdio.h> | |
#include <draw.h> | |
#include <graph.h> | |
#include <gs_psm.h> | |
#include <gif_registers.h> | |
#include <gs_gp.h> | |
#include <gs_privileged.h> | |
#include <gif_tags.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
q = packet->data; | |
PACK_GIFTAG(q, GIF_SET_TAG(2, 1, GIF_PRE_ENABLE, GS_SET_PRIM(GS_PRIM_SPRITE, 0, 1, 0, 0, 0, 1, 0, 0), GIF_FLG_PACKED, 6), | |
GIF_REG_AD | (GIF_REG_AD << 4) | (GIF_REG_UV << 8) | (GIF_REG_XYZ2 << 12) | (GIF_REG_UV << 16) | (GIF_REG_XYZ2 << 20)); | |
q++; | |
{ | |
// TEX0 | |
q->dw[0] = GS_SET_TEX0(fb.address / 64, 1, GS_PSM_32, 7, 7, 0, 1, 0, 0, 0, 0, 0); | |
q->dw[1] = GS_REG_TEX0; | |
q++; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
F -> 0 | |
S -> 3394607356 | |
I -> 172 | |
F -> 0 | |
S -> 3395086456 | |
I -> 172 | |
F -> 0 | |
S -> 3395550764 | |
I -> 172 | |
F -> 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <kernel.h> | |
#include <stdio.h> | |
#include <graph.h> | |
#include <draw.h> | |
#define GSCSR (*(volatile u64 *)0x12001000) | |
static u32 value = 0; | |
static s32 sema_vblanks_id = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <kernel.h> | |
#include <stdio.h> | |
#include <graph.h> | |
#include <draw.h> | |
#include <gs_psm.h> | |
#define INTC_STAT (*(volatile u32 *)0x1000F000) | |
#define GSCSR (*(volatile u64 *)0x12001000) | |
int main(void) |
NewerOlder