Prev: 13967 Up: Map Next: 13984
13979: THE 'END-CALC' SUBROUTINE (offset 56)
The address of this routine is found in the table of addresses. It is called via the calculator literal 56 by the routines at BEEP, OPEN, FETCH_NUM, IF_CMD, FOR, NEXT, NEXT_LOOP, CIRCLE, DRAW, CD_PRMS1, S_RND, S_PI, S_LETTER, LET, DEC_TO_FP, STACK_BC, INT_TO_FP, e_to_fp, FP_TO_BC, LOG_2_A, PRINT_FP, series, compare, n_mod_m, int, exp, ln, get_argt, sin, tan, atn, asn, acs, sqr and to_power.
This subroutine ends a RST 40 operation.
Input
Output
end_calc 13979 POP AF The return address to the calculator (RE_ENTRY) is discarded.
13980 EXX Instead, the address in HL' is put on the machine stack and an indirect jump is made to it. HL' will now hold any earlier address in the calculator chain of addresses.
13981 EX (SP),HL
13982 EXX
13983 RET Finished.
Prev: 13967 Up: Map Next: 13984