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

Provide Context object to avoid RTC calling SystemTime::now(). #76

Closed jamesyoungman closed 2 years ago

jamesyoungman commented 2 years ago

The RTC should not call SystemTime::now() because the RTC is part of the V memory implementation, and that needs to be able to run in environments (e.g. WASM) that lack support for SystemTime::now().

(In a WASM environment, SystemTime::now() will panic)

Pull Request template

Please, fill in the following checklist when you submit a PR. The items you have done should be updated with a check mark (that is, [x] instead of [ ]).

If any of the checklist items don't apply, please leave them un-checked.

PLEASE KEEP THE ABOVE IN YOUR PULL REQUEST.

Tested manually by running hello.tape.