add comments for ps2_get_code