sim: cpu_sim: Read program from stdin.