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

Implement FLF and FLG opcodes #14

Open jamesyoungman opened 2 years ago

jamesyoungman commented 2 years ago

Should be straightforward; these are essentially the opposite of SPF and SPG.

jamesyoungman commented 2 years ago

The SPG instruction (which copies data from main memory to F-memory) is already implemented in src/control/op_configuration.rs. The FLG instruction simply does the opposite (copies out of F-memory into main memory). FLF does the same, but for just one value at a time.

FLF and FLG are described in the User's Handbook on page 3-55 (which is physical page 50 in this online version of the User's Handbook.