Prev: 1E80 Up: Map Next: 1E94
1E85: THE 'TWO-PARAM' SUBROUTINE
Used by the routines at OUT_CMD and POKE.
The topmost parameter on the calculator stack must be compressible into a single register. It is two's complemented if it is negative. The second parameter must be compressible into a register pair.
TWO_PARAM 1E85 CALL FP_TO_A The parameter is fetched.
1E88 JR C,REPORT_B_2 Give an error if it is too high a number.
1E8A JR Z,TWO_P_1 Jump forward with positive numbers but two's complement negative numbers.
1E8C NEG
TWO_P_1 1E8E PUSH AF Save the first parameter whilst the second is fetched.
1E8F CALL FIND_INT2
1E92 POP AF The first parameter is restored before returning.
1E93 RET
Prev: 1E80 Up: Map Next: 1E94