I'm thinking of building something that emulates a VT-340 terminal. I can take MAME's emulation of the 80186, the ROM dumps, and have something that just translates the 80186 ROM code into a compilable program, with the hardware behavior informed by MAME's description (which is incomplete for the 3xx series).