This is not my code, but I upload the code I collected in the past back here.
An instruction assembler that emulates a vertex shader with MMX code.