Simulate a 4-function TI calculator using the original source code