| Routines

07828: 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.
FIND_INT1 | 07828 | CALL FP_TO_A | Fetch the 'last value'.
| 07831 | 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 | 07833 | CALL FP_TO_BC | Fetch the 'last value'.
FIND_I_1 | 07836 | JR C,REPORT_B_2 | In both cases overflow is indicated by a set carry flag.
| 07838 | 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 | 07839 | RST 8 | Call the error handling routine.
| 07840 | DEFB 10