ASSEMBLY LISTING OF SEGMENT >udd>sm>ds>w>ml>power_.alm ASSEMBLED ON: 04/18/00 1113.3 mdt Tue OPTIONS USED: list symbols ASSEMBLED BY: ALM Version 8.14 March 1989 ASSEMBLER CREATED: 06/09/89 1102.3 mdt Fri 1 " *********************************************************** 2 " * * 3 " * Copyright, (C) Honeywell Bull Inc., 1987 * 4 " * * 5 " * Copyright, (C) Honeywell Information Systems Inc., 1982 * 6 " * * 7 " * Copyright (c) 1972 by Massachusetts Institute of * 8 " * Technology and Honeywell Information Systems, Inc. * 9 " * * 10 " *********************************************************** 11 12 " Modified 24 June 1980 by C R Davis to fix bug in which |b| < 1.0 13 " causes overflow fault in power_integer_. 14 " Modified 21 Dec 83 by HH to add HFP support. 15 16 " evaluate a ** b in double precision 17 " Note: the log routine uses index registers 0-4, so we must avoid using these 18 " 000000 19 segdef integer_power_single_ 000011 20 segdef integer_power_double_ 000003 21 segdef single_power_single_ 000014 22 segdef single_power_double_ 000003 23 segdef double_power_single_ 000014 24 segdef double_power_double_ 000022 25 segdef hfp_integer_power_single_ 000034 26 segdef hfp_integer_power_double_ 000026 27 segdef hfp_single_power_single_ 000040 28 segdef hfp_single_power_double_ 000026 29 segdef hfp_double_power_single_ 000040 30 segdef hfp_double_power_double_ 31 " 777777 777776 32 equ return,-2 000002 33 equ work_size,2 000000 34 equ a,0 same as in power_integer_ 35 " 000000 36 integer_power_single_: 000000 aa 000000 2350 07 37 lda 0,dl float a 000001 aa 216000 4110 03 38 lde =71b25,du 000002 aa 400000 4750 03 39 fad =0.0,du 40 " 000003 41 single_power_single_: 000003 42 double_power_single_: 000003 0a 000046 7050 00 43 tsx5 common 000004 aa 1 00000 4611 00 44 fmp 1|0 000005 aa 1 00000 4311 00 45 fld 1|0 000006 aa 1 00000 4251 00 46 fcmg 1|0 000007 4a 4 00010 2731 20 47 tsp3 |[double_log_base_e_] 000010 4a 4 00012 7101 20 48 tra |[double_exponential_] 49 " 000011 50 integer_power_double_: 000011 aa 000000 2350 07 51 lda 0,dl float a 000012 aa 216000 4110 03 52 lde =71b25,du 000013 aa 400000 4750 03 53 fad =0.0,du 54 " 000014 55 single_power_double_: 000014 56 double_power_double_: 000014 0a 000046 7050 00 57 tsx5 common 000015 aa 1 00000 4631 00 58 dfmp 1|0 000016 aa 1 00000 4331 00 59 dfld 1|0 000017 aa 1 00000 4271 00 60 dfcmg 1|0 000020 4a 4 00010 2731 20 61 tsp3 |[double_log_base_e_] 000021 4a 4 00012 7101 20 62 tra |[double_exponential_] 63 " 000022 64 hfp_integer_power_single_: 000022 aa 000000 2350 07 65 lda 0,dl float Q 000023 aa 044000 4110 03 66 lde =18b25,du 000024 aa 000000 5730 00 67 fno 000025 aa 000400 4610 03 68 fmp =0.5,du 69 " 000026 70 hfp_single_power_single_: 000026 71 hfp_double_power_single_: 000026 0a 000064 7050 00 72 tsx5 hfp_common 000027 aa 1 00000 4611 00 73 fmp 1|0 000030 aa 1 00000 4311 00 74 fld 1|0 000031 aa 1 00000 4251 00 75 fcmg 1|0 000032 4a 4 00014 2731 20 76 tsp3 |[hfp_double_log_base_e_] 000033 4a 4 00016 7101 20 77 tra |[hfp_double_exponential_] 78 " 000034 79 hfp_integer_power_double_: 000034 aa 000000 2350 07 80 lda 0,dl float Q 000035 aa 044000 4110 03 81 lde =18b25,du 000036 aa 000000 5730 00 82 fno 000037 aa 000400 4610 03 83 fmp =0.5,du 84 " 000040 85 hfp_single_power_double_: 000040 86 hfp_double_power_double_: 000040 0a 000064 7050 00 87 tsx5 hfp_common 000041 aa 1 00000 4631 00 88 dfmp 1|0 000042 aa 1 00000 4331 00 89 dfld 1|0 000043 aa 1 00000 4271 00 90 dfcmg 1|0 000044 4a 4 00014 2731 20 91 tsp3 |[hfp_double_log_base_e_] 000045 4a 4 00016 7101 20 92 tra |[hfp_double_exponential_] 93 " 000046 aa 400000 5150 03 94 common: fcmp =0.0,du check a 000047 0a 000116 6000 00 95 tze test skip if a = 0 000050 aa 2 00000 4571 00 96 dfst 2|a save a 000051 aa 000001 7160 15 97 xec 1,5 load b 000052 0a 000113 6000 00 98 tze spec skip if b = 0 000053 aa 070400 4250 03 99 fcmg 28*1024+256,du is b < 2**27 000054 0a 000103 6050 00 100 tpl begin no, skip 000055 aa 002400 4250 03 101 fcmg =1.0,du is b > 1? 000056 0a 000103 6040 00 102 tmi begin no, must use logs 000057 aa 106000 4350 03 103 ufa =35b25,du get int(b) in a 000060 aa 000000 1160 07 104 cmpq 0,dl is it an integer 000061 0a 000103 6010 00 105 tnz begin no, use logs 000062 aa 000000 1150 07 106 cmpa 0,dl set indicators from a 000063 4a 4 00020 7101 20 107 tra |[power_integer_] 108 " 000064 109 hfp_common: 000064 aa 400000 5150 03 110 fcmp =0.0,du check a 000065 0a 000116 6000 00 111 tze test skip if a = 0 000066 aa 2 00000 4571 00 112 dfst 2|a save a 000067 aa 000001 7160 15 113 xec 1,5 load b 000070 0a 000113 6000 00 114 tze spec skip if b = 0 000071 aa 016400 4250 03 115 fcmg =o016400,du is abs(b) < 2**27? 000072 0a 000103 6050 00 116 tpl begin no, skip 000073 aa 001000 4250 03 117 fcmg =-1.0,du is abs(b) >= 1? 000074 0a 000103 6040 00 118 tmi begin no, must use logs 000075 aa 022000 4350 03 119 ufa =9b25,du get int(b) in A 000076 aa 000001 7370 00 120 lls 1 000077 aa 000000 1160 07 121 cmpq 0,dl is it an integer? 000100 0a 000103 6010 00 122 tnz begin no, use logs 000101 aa 000000 1150 07 123 cmpa 0,dl set indicators from A 000102 4a 4 00022 7101 20 124 tra |[hfp_power_integer_] 125 " 000103 aa 2 00000 4331 00 126 begin: dfld 2|a not integer, restore a 000104 0a 000125 6040 00 127 tmi err1 000105 aa 2 00002 3521 00 128 epp2 2|work_size reserve work space for ourselves 000106 aa 2 77776 2535 00 129 spri3 2|return save our return 000107 aa 000003 7160 15 130 xec 3,5 log(a) 000110 aa 000000 7160 15 131 xec 0,5 b * log(a) 000111 aa 2 77776 3535 20 132 epp3 2|return,* restore return pt 000112 aa 000004 7160 15 133 xec 4,5 exp(b*log(a)) (exit through exp) 134 " 000113 aa 000400 4310 03 135 spec: fld =0.5,du 000114 aa 000400 4750 03 136 fad =0.5,du 000115 aa 3 00000 7101 00 137 tra 3|0 138 " 000116 aa 1 00000 4301 00 139 test: fszn 1|0 special case when a = 0 000117 0a 000132 6000 00 140 tze err2 error if a = 0 & b = 0 000120 aa 3 00000 6051 00 141 tpl 3|0 0 ** positive is 0 000121 aa 000022 2360 07 142 ldq 18,dl 000122 4a 4 00024 7001 20 143 err: tsx0 |[call_math_error_] 000123 aa 400000 4310 03 144 fld =0.0,du 000124 aa 3 00000 7101 00 145 tra 3|0 146 " 000125 aa 000020 2360 07 147 err1: ldq 16,dl 000126 4a 4 00024 7001 20 148 tsx0 |[call_math_error_] 000127 aa 2 00000 4331 00 149 dfld 2|a evaluate for abs(a) 000130 aa 000000 5130 00 150 fneg 0 000131 0a 000105 7100 00 151 tra begin+2 152 " 000132 aa 000021 2360 07 153 err2: ldq 17,dl 0 ** 0 000133 0a 000122 7100 00 154 tra err 155 end NO LITERALS NAME DEFINITIONS FOR ENTRY POINTS AND SEGDEFS 000134 5a 000003 000000 000135 5a 000201 600000 000136 aa 000000 000000 000137 55 000010 000002 000140 5a 000002 400003 000141 55 000006 000010 000142 aa 006 160 157 167 000143 aa 145 162 137 000 000144 55 000022 000003 000145 0a 000040 400000 000146 55 000013 000003 000147 aa 030 150 146 160 hfp_double_power_double_ 000150 aa 137 144 157 165 000151 aa 142 154 145 137 000152 aa 160 157 167 145 000153 aa 162 137 144 157 000154 aa 165 142 154 145 000155 aa 137 000 000 000 000156 55 000034 000010 000157 0a 000026 400000 000160 55 000025 000003 000161 aa 030 150 146 160 hfp_double_power_single_ 000162 aa 137 144 157 165 000163 aa 142 154 145 137 000164 aa 160 157 167 145 000165 aa 162 137 163 151 000166 aa 156 147 154 145 000167 aa 137 000 000 000 000170 55 000046 000022 000171 0a 000040 400000 000172 55 000037 000003 000173 aa 030 150 146 160 hfp_single_power_double_ 000174 aa 137 163 151 156 000175 aa 147 154 145 137 000176 aa 160 157 167 145 000177 aa 162 137 144 157 000200 aa 165 142 154 145 000201 aa 137 000 000 000 000202 55 000060 000034 000203 0a 000026 400000 000204 55 000051 000003 000205 aa 030 150 146 160 hfp_single_power_single_ 000206 aa 137 163 151 156 000207 aa 147 154 145 137 000210 aa 160 157 167 145 000211 aa 162 137 163 151 000212 aa 156 147 154 145 000213 aa 137 000 000 000 000214 55 000072 000046 000215 0a 000034 400000 000216 55 000063 000003 000217 aa 031 150 146 160 hfp_integer_power_double_ 000220 aa 137 151 156 164 000221 aa 145 147 145 162 000222 aa 137 160 157 167 000223 aa 145 162 137 144 000224 aa 157 165 142 154 000225 aa 145 137 000 000 000226 55 000104 000060 000227 0a 000022 400000 000230 55 000075 000003 000231 aa 031 150 146 160 hfp_integer_power_single_ 000232 aa 137 151 156 164 000233 aa 145 147 145 162 000234 aa 137 160 157 167 000235 aa 145 162 137 163 000236 aa 151 156 147 154 000237 aa 145 137 000 000 000240 55 000115 000072 000241 0a 000014 400000 000242 55 000107 000003 000243 aa 024 144 157 165 double_power_double_ 000244 aa 142 154 145 137 000245 aa 160 157 167 145 000246 aa 162 137 144 157 000247 aa 165 142 154 145 000250 aa 137 000 000 000 000251 55 000126 000104 000252 0a 000003 400000 000253 55 000120 000003 000254 aa 024 144 157 165 double_power_single_ 000255 aa 142 154 145 137 000256 aa 160 157 167 145 000257 aa 162 137 163 151 000260 aa 156 147 154 145 000261 aa 137 000 000 000 000262 55 000137 000115 000263 0a 000014 400000 000264 55 000131 000003 000265 aa 024 163 151 156 single_power_double_ 000266 aa 147 154 145 137 000267 aa 160 157 167 145 000270 aa 162 137 144 157 000271 aa 165 142 154 145 000272 aa 137 000 000 000 000273 55 000150 000126 000274 0a 000003 400000 000275 55 000142 000003 000276 aa 024 163 151 156 single_power_single_ 000277 aa 147 154 145 137 000300 aa 160 157 167 145 000301 aa 162 137 163 151 000302 aa 156 147 154 145 000303 aa 137 000 000 000 000304 55 000161 000137 000305 0a 000011 400000 000306 55 000153 000003 000307 aa 025 151 156 164 integer_power_double_ 000310 aa 145 147 145 162 000311 aa 137 160 157 167 000312 aa 145 162 137 144 000313 aa 157 165 142 154 000314 aa 145 137 000 000 000315 55 000172 000150 000316 0a 000000 400000 000317 55 000164 000003 000320 aa 025 151 156 164 integer_power_single_ 000321 aa 145 147 145 162 000322 aa 137 160 157 167 000323 aa 145 162 137 163 000324 aa 151 156 147 154 000325 aa 145 137 000 000 000326 55 000002 000161 000327 6a 000000 400002 000330 55 000175 000003 000331 aa 014 163 171 155 symbol_table 000332 aa 142 157 154 137 000333 aa 164 141 142 154 000334 aa 145 000 000 000 DEFINITIONS HASH TABLE 000335 aa 000000 000033 000336 aa 000000 000000 000337 aa 000000 000000 000340 aa 000000 000000 000341 aa 000000 000000 000342 aa 000000 000000 000343 5a 000104 000000 000344 5a 000115 000000 000345 aa 000000 000000 000346 5a 000060 000000 000347 5a 000010 000000 000350 5a 000022 000000 000351 5a 000034 000000 000352 5a 000046 000000 000353 5a 000072 000000 000354 5a 000150 000000 000355 5a 000161 000000 000356 5a 000172 000000 000357 aa 000000 000000 000360 aa 000000 000000 000361 5a 000126 000000 000362 5a 000137 000000 000363 aa 000000 000000 000364 aa 000000 000000 000365 aa 000000 000000 000366 aa 000000 000000 000367 aa 000000 000000 000370 aa 000000 000000 EXTERNAL NAMES 000371 aa 020 143 141 154 call_math_error_ 000372 aa 154 137 155 141 000373 aa 164 150 137 145 000374 aa 162 162 157 162 000375 aa 137 000 000 000 000376 aa 022 150 146 160 hfp_power_integer_ 000377 aa 137 160 157 167 000400 aa 145 162 137 151 000401 aa 156 164 145 147 000402 aa 145 162 137 000 000403 aa 016 160 157 167 power_integer_ 000404 aa 145 162 137 151 000405 aa 156 164 145 147 000406 aa 145 162 137 000 000407 aa 027 150 146 160 hfp_double_exponential_ 000410 aa 137 144 157 165 000411 aa 142 154 145 137 000412 aa 145 170 160 157 000413 aa 156 145 156 164 000414 aa 151 141 154 137 000415 aa 026 150 146 160 hfp_double_log_base_e_ 000416 aa 137 144 157 165 000417 aa 142 154 145 137 000420 aa 154 157 147 137 000421 aa 142 141 163 145 000422 aa 137 145 137 000 000423 aa 023 144 157 165 double_exponential_ 000424 aa 142 154 145 137 000425 aa 145 170 160 157 000426 aa 156 145 156 164 000427 aa 151 141 154 137 000430 aa 022 144 157 165 double_log_base_e_ 000431 aa 142 154 145 137 000432 aa 154 157 147 137 000433 aa 142 141 163 145 000434 aa 137 145 137 000 000435 aa 021 144 157 165 double_logarithm_ 000436 aa 142 154 145 137 000437 aa 154 157 147 141 000440 aa 162 151 164 150 000441 aa 155 137 000 000 NO TRAP POINTER WORDS TYPE PAIR BLOCKS 000442 aa 000004 000000 000443 55 000235 000235 000444 aa 000004 000000 000445 55 000247 000242 000446 aa 000004 000000 000447 55 000247 000247 000450 aa 000004 000000 000451 55 000267 000253 000452 aa 000004 000000 000453 55 000301 000261 000454 aa 000004 000000 000455 55 000267 000267 000456 aa 000004 000000 000457 55 000301 000274 000460 aa 000001 000000 000461 aa 000000 000000 INTERNAL EXPRESSION WORDS 000462 5a 000306 000000 000463 5a 000310 000000 000464 5a 000312 000000 000465 5a 000314 000000 000466 5a 000316 000000 000467 5a 000320 000000 000470 5a 000322 000000 000471 aa 000000 000000 LINKAGE INFORMATION 000000 aa 000000 000000 000001 0a 000134 000000 000002 aa 000000 000000 000003 aa 000000 000000 000004 aa 000000 000000 000005 aa 000000 000000 000006 22 000010 000026 000007 a2 000000 000000 000010 9a 777770 0000 46 double_logarithm_|double_log_base_e_ 000011 5a 000334 0000 00 000012 9a 777766 0000 46 double_exponential_|double_exponential_ 000013 5a 000333 0000 00 000014 9a 777764 0000 46 double_logarithm_|hfp_double_log_base_e_ 000015 5a 000332 0000 00 000016 9a 777762 0000 46 double_exponential_|hfp_double_exponential_ 000017 5a 000331 0000 00 000020 9a 777760 0000 46 power_integer_|power_integer_ 000021 5a 000330 0000 00 000022 9a 777756 0000 46 power_integer_|hfp_power_integer_ 000023 5a 000327 0000 00 000024 9a 777754 0000 46 call_math_error_|call_math_error_ 000025 5a 000326 0000 00 SYMBOL INFORMATION SYMBOL TABLE HEADER 000000 aa 000000 000001 000001 aa 163171 155142 000002 aa 164162 145145 000003 aa 000000 000010 000004 aa 000000 117244 000005 aa 361023 525721 000006 aa 000000 131036 000007 aa 677632 304514 000010 aa 141154 155040 000011 aa 040040 040040 000012 aa 000024 000040 000013 aa 000034 000040 000014 aa 000044 000100 000015 aa 000002 000002 000016 aa 000064 000000 000017 aa 000000 000163 000020 aa 000000 000101 000021 aa 000122 000114 000022 aa 000155 000101 000023 aa 000064 000000 000024 aa 101114 115040 000025 aa 126145 162163 000026 aa 151157 156040 000027 aa 070056 061064 000030 aa 040115 141162 000031 aa 143150 040061 000032 aa 071070 071040 000033 aa 040040 040040 000034 aa 123143 150162 000035 aa 157164 150056 000036 aa 123171 163115 000037 aa 141151 156164 000040 aa 056155 040040 000041 aa 040040 040040 000042 aa 040040 040040 000043 aa 040040 040040 000044 aa 154151 163164 000045 aa 040163 171155 000046 aa 142157 154163 000047 aa 040040 040040 000050 aa 040040 040040 000051 aa 040040 040040 000052 aa 040040 040040 000053 aa 040040 040040 000054 aa 040040 040040 000055 aa 040040 040040 000056 aa 040040 040040 000057 aa 040040 040040 000060 aa 040040 040040 000061 aa 040040 040040 000062 aa 040040 040040 000063 aa 040040 040040 000064 aa 000000 000001 000065 aa 000000 000001 000066 aa 000072 000032 000067 aa 310157 125136 000070 aa 000000 131036 000071 aa 677632 200000 000072 aa 076165 144144 >udd>sm>ds>w>ml>power_.alm 000073 aa 076163 155076 000074 aa 144163 076167 000075 aa 076155 154076 000076 aa 160157 167145 000077 aa 162137 056141 000100 aa 154155 040040 MULTICS ASSEMBLY CROSS REFERENCE LISTING Value Symbol Source file Line number 0 a power_: 34, 96, 112, 126, 149. 103 begin power_: 100, 102, 105, 116, 118, 122, 126, 151. call_math_error_ power_: 143, 148. 46 common power_: 43, 57, 94. double_exponential_ power_: 48, 62, 77, 92. double_logarithm_ power_: 47, 61, 76, 91. double_log_base_e_ power_: 47, 61. 14 double_power_double_ power_: 24, 56. 3 double_power_single_ power_: 23, 42. 122 err power_: 143, 154. 125 err1 power_: 127, 147. 132 err2 power_: 140, 153. 64 hfp_common power_: 72, 87, 109. hfp_double_exponential_ power_: 77, 92. hfp_double_log_base_e_ power_: 76, 91. 40 hfp_double_power_double_ power_: 30, 86. 26 hfp_double_power_single_ power_: 29, 71. 34 hfp_integer_power_double_ power_: 26, 79. 22 hfp_integer_power_single_ power_: 25, 64. hfp_power_integer_ power_: 124. 40 hfp_single_power_double_ power_: 28, 85. 26 hfp_single_power_single_ power_: 27, 70. 11 integer_power_double_ power_: 20, 50. 0 integer_power_single_ power_: 19, 36. power_integer_ power_: 107, 124. 777776 return power_: 32, 129, 132. 14 single_power_double_ power_: 22, 55. 3 single_power_single_ power_: 21, 41. 113 spec power_: 98, 114, 135. 116 test power_: 95, 111, 139. 2 work_size power_: 33, 128. NO FATAL ERRORS ----------------------------------------------------------- Historical Background This edition of the Multics software materials and documentation is provided and donated to Massachusetts Institute of Technology by Group BULL including BULL HN Information Systems Inc. as a contribution to computer science knowledge. This donation is made also to give evidence of the common contributions of Massachusetts Institute of Technology, Bell Laboratories, General Electric, Honeywell Information Systems Inc., Honeywell BULL Inc., Groupe BULL and BULL HN Information Systems Inc. to the development of this operating system. Multics development was initiated by Massachusetts Institute of Technology Project MAC (1963-1970), renamed the MIT Laboratory for Computer Science and Artificial Intelligence in the mid 1970s, under the leadership of Professor Fernando Jose Corbato. Users consider that Multics provided the best software architecture for managing computer hardware properly and for executing programs. Many subsequent operating systems incorporated Multics principles. Multics was distributed in 1975 to 2000 by Group Bull in Europe , and in the U.S. by Bull HN Information Systems Inc., as successor in interest by change in name only to Honeywell Bull Inc. and Honeywell Information Systems Inc. . ----------------------------------------------------------- Permission to use, copy, modify, and distribute these programs and their documentation for any purpose and without fee is hereby granted,provided that the below copyright notice and historical background appear in all copies and that both the copyright notice and historical background and this permission notice appear in supporting documentation, and that the names of MIT, HIS, BULL or BULL HN not be used in advertising or publicity pertaining to distribution of the programs without specific prior written permission. Copyright 1972 by Massachusetts Institute of Technology and Honeywell Information Systems Inc. Copyright 2006 by BULL HN Information Systems Inc. Copyright 2006 by Bull SAS All Rights Reserved