Create ps1_gen.cpp