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

Exchange unit: is directional, fix sign extension. #56

Closed jamesyoungman closed 2 years ago

jamesyoungman commented 2 years ago

Make the exchange unit behave differently in the E->M and M->E directions. This follows the explanation in chapter 13 of the Users Handbook.

Also fix sign extension. It doesn't happen in the E->M direction and the sign bit of a quarter is 0o400, not 0o300.

Add test cases for the RSX instruction which correspond to the examples in the instruction definition in the Users Handbook.

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.

closes #55 closes #54