http://code.google.com/p/pcsx2/source/detail?r=3000