sim: cpu_sim: add ability to run mutiple programs; add a MAGIC_HALT instruction.