PGEN is an old Sega Genesis/Megadrive emulator for the PS2 based on Generator source code.
ps2homebrew