Prev: 12997 Up: Map Next: 13147
13015: THE TABLE OF ADDRESSES
Used by the routine at CALCULATE.
This table is a look-up table of the addresses of the sixty-six operational subroutines of the calculator. The offsets used to index into the table are derived either from the operation codes used in the routine at SCANNING (see S_LOOP, etc.) or from the literals that follow a 'RST 28' instruction.
Input
Output
CALCADDR 13015 DEFW jump_true 00
13017 DEFW exchange 01
13019 DEFW delete 02
13021 DEFW subtract 03
13023 DEFW multiply 04
13025 DEFW division 05
13027 DEFW to_power 06
13029 DEFW no_or_no 07
13031 DEFW no_and_no 08
13033 DEFW compare 09: <= (numbers)
13035 DEFW compare 0A: >= (numbers)
13037 DEFW compare 0B: <> (numbers)
13039 DEFW compare 0C: > (numbers)
13041 DEFW compare 0D: < (numbers)
13043 DEFW compare 0E: = (numbers)
13045 DEFW addition 0F
13047 DEFW str_no 10
13049 DEFW compare 11: <= (strings)
13051 DEFW compare 12: >= (strings)
13053 DEFW compare 13: <> (strings)
13055 DEFW compare 14: > (strings)
13057 DEFW compare 15: < (strings)
13059 DEFW compare 16: = (strings)
13061 DEFW strs_add 17
13063 DEFW val 18 (VAL$)
13065 DEFW usr 19
13067 DEFW read_in 1A
13069 DEFW negate 1B
13071 DEFW code 1C
13073 DEFW val 1D (VAL)
13075 DEFW len 1E
13077 DEFW sin 1F
13079 DEFW cos 20
13081 DEFW tan 21
13083 DEFW asn 22
13085 DEFW acs 23
13087 DEFW atn 24
13089 DEFW ln 25
13091 DEFW exp 26
13093 DEFW int 27
13095 DEFW sqr 28
13097 DEFW sgn 29
13099 DEFW abs 2A
13101 DEFW peek 2B
13103 DEFW f_in 2C
13105 DEFW usr_no 2D
13107 DEFW str 2E
13109 DEFW chrs 2F
13111 DEFW f_not 30
13113 DEFW duplicate 31
13115 DEFW n_mod_m 32
13117 DEFW jump 33
13119 DEFW stk_data 34
13121 DEFW dec_jr_nz 35
13123 DEFW less_0 36
13125 DEFW greater_0 37
13127 DEFW end_calc 38
13129 DEFW get_argt 39
13131 DEFW truncate 3A
13133 DEFW fp_calc_2 3B
13135 DEFW e_to_fp 3C
13137 DEFW re_stack 3D
13139 DEFW series 3E
13141 DEFW stk_con 3F
13143 DEFW st_mem 40
13145 DEFW get_mem 41
Note: the last four subroutines are multi-purpose subroutines and are entered with a parameter that is a copy of the right hand five bits of the original literal. The full set follows:
  • Offset 3E: series-06, series-08 and series-0C; literals 86, 88 and 8C.
  • Offset 3F: stk-zero, stk-one, stk-half, stk-pi/2 and stk-ten; literals A0 to A4.
  • Offset 40: st-mem-0, st-mem-1, st-mem-2, st-mem-3, st-mem-4 and st-mem-5; literals C0 to C5.
  • Offset 41: get-mem-0, get-mem-1, get-mem-2, get-mem-3, get-mem-4 and get-mem-5; literals E0 to E5.
Prev: 12997 Up: Map Next: 13147