![]() ![]() Recall stack register Y and multiply with Xĭecrement stack register Y and if not zero. No memory registers are used.ġ is put into X, hence the value to be calculated upon (which was initially in X) is lifted (pushed) into stack register Y This is a sample program which computes the factorial of an input integer number (ignoring the calculator's built-in factorial function). The HP-42S supports indirect addressing with which it is possible to implement a Universal Turing machine and therefore the programming model of the HP-42S can be considered Turing-complete. The HP-42S uses a superset of the HP-41CX FOCAL language. The HP-42S is keystroke-programmable, meaning that it can remember and later execute sequences of keystrokes to solve particular problems of interest to the user.
0 Comments
Leave a Reply. |