TX-2 / TX-2-simulator

Simulator for the pioneering TX-2 computer
https://tx-2.github.io/
MIT License
21 stars 2 forks source link

Move main loop out of cpu crate #35

Closed jamesyoungman closed 2 years ago

jamesyoungman commented 2 years ago

Right now, the main loop is run_until_alarm() in cpu/src/lib.rs. But the basic design idea is that the cpu crate should be passive, responding to calls from the main program (which operates the UI). So probably most of run_until_alarm() should move to cli/src/main.rs.