Start converting qam-steps.py to C.