Ken Shirriff presents an in-browser emulation, explains the algorithms and includes the commented code (as reversed from photographs of the chip) of this marvellous and weird 1974 calculator from Sinclair. A nibble-serial machine with just 3 registers, no stack, no RAM and an 11-bit opcode format.
See
http://righto.com/sinclair for the emulator, source code and explanation.
The remarkable thing being that the chip was intended to act as a four-function calculator, and indeed patents show an implementation of such a calculator which uses all 320 words(*). To fit a scientific calculator into that ROM, which is half the size of the HP-35's ROM, is amazing - TI said it couldn't be done. Admittedly the result is difficult to use, slow, and inaccurate. Nonetheless I bought two of them, one of which supplied the chip which Ken analysed.
Cheers
Ed
(*) Emulated and explained at
http://righto.com/ti