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

Support use of default-defined X-register numbers in assembler symbol table #109

Open jamesyoungman opened 1 year ago

jamesyoungman commented 1 year ago

If you use a symbolic name as an X register without providing a definition, the assembler doesn't allocate an X-register for it.

Instead you get unimplemented!("should assign an index register here") in assembler/src/asmlib/symtab.rs.

Though, perhaps that code is unreachable because we may not correctly support symexes in subscript, yet.

See section 6-2.2 of the User Handbook for a description of how this is supposed to work.