C code to emulate a single core 5 stage pipelined processor.