Finish rewritting the CPU in C