Prev: 1E85 Up: Map Next: 1EA1
1E94: THE 'FIND INTEGERS' SUBROUTINE
Used by the routines at BEEP, STR_DATA, STR_ALTER, CO_TEMP_1, BORDER, CIRCLE and read_in.
The 'last value' on the calculator stack is fetched and compressed into a single register or a register pair by entering at FIND_INT1 and FIND_INT2 respectively.
Input
Output
FIND_INT1 1E94 CALL FP_TO_A Fetch the 'last value'.
1E97 JR FIND_I_1 Jump forward.
This entry point is used by the routines at BEEP, SAVE_ETC, LIST, RESTORE, RANDOMIZE, GO_TO, TWO_PARAM, CLEAR, PAUSE, PR_ITEM_1, INT_EXP1, f_in, peek and usr_no.
FIND_INT2 1E99 CALL FP_TO_BC Fetch the 'last value'.
FIND_I_1 1E9C JR C,REPORT_B_2 In both cases overflow is indicated by a set carry flag.
1E9E RET Z Return with all positive numbers that are in range.
This entry point is used by the routines at PO_TV_2, GO_TO, TWO_PARAM and read_in.
Report B - Integer out of range.
REPORT_B_2 1E9F RST $08 Call the error handling routine.
1EA0 DEFB $0A
Prev: 1E85 Up: Map Next: 1EA1