Skip to content

Instantly share code, notes, and snippets.

@LukeUsher
LukeUsher / blackskin.xvu
Last active June 26, 2018 21:34
THPS2X Shaders
xvs.1.1
add r2.x, c32.z, -v1.x
dph r3.x, v0, c0
dph r3.y, v0, c1
dph r3.z, v0, c2
dph r4.x, v0, c3
dph r4.y, v0, c4
dph r4.z, v0, c5
mul r5.xyz, r3.xyz, v1.x
mad r6.xyz, r4.xyz, r2.x, r5.xyz
@LukeUsher
LukeUsher / main.c
Created December 12, 2016 21:15
Minimal exception speed test case
#include <Windows.h>
#include <iostream>
// exception handler
int EmuException(LPEXCEPTION_POINTERS e)
{
// Increment EIP to skip the faulting instruction
e->ContextRecord->Eip += 1;
return EXCEPTION_CONTINUE_EXECUTION;
}