preprogram (program + pre-; before)
To program something in advance