Python emulation of IAS 1950 instruction set