Skip to content

Instantly share code, notes, and snippets.

View F0bes's full-sized avatar
👀
Looking for some work :)

Ty F0bes

👀
Looking for some work :)
  • Ontario, Canada
  • 12:35 (UTC -04:00)
View GitHub Profile
@F0bes
F0bes / at.c
Last active January 29, 2022 00:34
#include <stdio.h>
#include <draw.h>
#include <tamtypes.h>
#include <kernel.h>
#include <draw3d.h>
#include <packet.h>
#include <dma.h>
#include <gif_tags.h>
#include <gs_psm.h>
@F0bes
F0bes / defs.h
Created February 19, 2022 04:48
Example Reverse Fifo / Framebuffer download code
// Taken from the debug ps2_screenshot source
#define GIF_AD 0x0e
#define GIFTAG(NLOOP,EOP,PRE,PRIM,FLG,NREG) \
((u64)(NLOOP) << 0) | \
((u64)(EOP) << 15) | \
((u64)(PRE) << 46) | \
((u64)(PRIM) << 47) | \
((u64)(FLG) << 58) | \
#include "defs.h"
#include <kernel.h>
#include <tamtypes.h>
#include <stdio.h>
#include <gif_tags.h>
#include <gs_gp.h>
#include <gs_psm.h>
@F0bes
F0bes / clutbuffer.c
Created February 27, 2022 06:00
Uses the clut buffer
#include "defs.h"
#include <kernel.h>
#include <tamtypes.h>
#include <stdio.h>
#include <gif_tags.h>
#include <gs_gp.h>
#include <gs_psm.h>
@F0bes
F0bes / mipmapping.c
Last active March 9, 2022 01:29
mipmapping
// Tests MTBA with MXL 0 and MMIN 0
// (MTBA still works with these set to 0)
#include "defs.h"
#include <kernel.h>
#include <tamtypes.h>
#include <stdio.h>
#include <gif_tags.h>
// Tests MTBA with MXL 0 and MMIN 0
// (MTBA still works with these set to 0)
#include "defs.h"
#include <kernel.h>
#include <tamtypes.h>
#include <stdio.h>
#include <gif_tags.h>
// Tests MTBA with a PSMZ 24
#include "defs.h"
#include <kernel.h>
#include <tamtypes.h>
#include <stdio.h>
#include <gif_tags.h>
#include <gs_gp.h>
// Tests MTBA with MXL 0 and MMIN 0
// (MTBA still works with these set to 0)
#include "defs.h"
#include <kernel.h>
#include <tamtypes.h>
#include <stdio.h>
#include <gif_tags.h>
// Tests MTBA with MXL 0 and MMIN 0
// (MTBA still works with these set to 0)
#include "defs.h"
#include <kernel.h>
#include <tamtypes.h>
#include <stdio.h>
#include <string.h>
#include <gif_tags.h>
// Tests different ALPHA settings with different COLCLAMP settings
#include "defs.h"
#include <kernel.h>
#include <tamtypes.h>
#include <stdio.h>
#include <string.h>
#include <gif_tags.h>