Text this: Writing TSRs through C