COMPILATION LISTING OF SEGMENT cobol_reset_r Compiled by: Multics PL/I Compiler, Release 31b, of April 24, 1989 Compiled at: Bull HN, Phoenix AZ, System-M Compiled on: 05/24/89 0956.9 mst Wed Options: optimize map 1 /****^ *********************************************************** 2* * * 3* * Copyright, (C) BULL HN Information Systems Inc., 1989 * 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 13 14 15 /****^ HISTORY COMMENTS: 16* 1) change(89-04-23,Zimmerman), approve(89-04-23,MCR8060), 17* audit(89-05-05,RWaters), install(89-05-24,MR12.3-1048): 18* MCR8060 cobol_reset_r.pl1 Added Trace statements. 19* END HISTORY COMMENTS */ 20 21 22 /* Modified on 09/23/83 by FCH, [5.2...], trace added */ 23 /* Modified on 01/14/77 by ORN to signal command_abort_ rather than cobol_compiler_error */ 24 /* Modified since Version 2.0 */ 25 26 /* format: style3 */ 27 cobol_reset_r: 28 proc; 29 30 /* DECLARATION OF EXTERNAL ENTRIES */ 31 32 dcl cobol_register_util$restore_pointer 33 ext entry (bit (4)); 34 dcl cobol_register_util$restore 35 ext entry (bit (4)); 36 37 dcl signal_ entry (char (*), ptr, ptr); 38 dcl 1 error_message static, 39 2 name char (32) init ("cobol_reset_r"), 40 2 length fixed bin init (24), 41 2 message char (24); 42 43 dcl reset_r_instr (4) bit (36) static init ("110000000000011000011101000001010000"b, 44 /* epp0 pr6|30,* */ 45 "110000000000100100011111000001010000"b, 46 /* epp4 pr6|44,* */ 47 "110000000001101110011101011101010000"b, 48 /* epp3 pr6|156,* */ 49 "110000000001110000011111001101010000"b); 50 /* epp5 pr6|160,* */ 51 52 dcl cobol_emit entry (ptr, ptr, fixed bin); 53 dcl (i, j) fixed bin; 54 dcl k fixed bin; 55 dcl op_flag fixed bin static init (1); 56 dcl ptr_val (1:4) fixed bin int static init (0, 4, 3, 5); 57 58 dcl ptr_no bit (3); 59 60 /*************************************/ 61 pointer_register: 62 entry (ptr_no); 63 start_pointer_register: 64 /***..... dcl LOCAL_NAME char (17) int static init ("$POINTER_REGISTER");/**/ 65 /***.....if Trace_Bit then call cobol_gen_driver_$Tr_Beg(MY_NAME||LOCAL_NAME);/**/ 66 i = 0; 67 if ptr_no = "000"b 68 then i = 1; 69 else if ptr_no = "011"b 70 then i = 3; 71 else if ptr_no = "100"b 72 then i = 2; 73 else if ptr_no = "101"b 74 then i = 4; 75 if i = 0 76 then go to error_exit; 77 if ptr_status.save_stack_count (ptr_val (i)) ^= 0 78 then do; /* Must restore this pointer register. */ 79 call cobol_register_util$restore_pointer ("0"b || ptr_no); 80 ptr_status.contents_sw (i) = 0; 81 ptr_status.p_lock (i) = 1; 82 end; /* Must restore this pointer register. */ 83 else call cobol_emit (addr (reset_r_instr (i)), null (), 1); 84 85 go to exit_pointer_register; 86 87 /*************************************/ 88 after_call: 89 entry; 90 start_after_call: 91 /***..... dcl LOCAL_NAME4 char (11) int static init ("$AFTER_CALL");/**/ 92 /***.....if Trace_Bit then call cobol_gen_driver_$Tr_Beg(MY_NAME||LOCAL_NAME4);/**/ 93 i = 2; 94 j = 4; 95 96 emit_: 97 do k = i to j; 98 if ptr_status.save_stack_count (ptr_val (k)) > 0 99 then do; /* Register must be restored. */ 100 ptr_status.save_stack_count (ptr_val (k)) = ptr_status.save_stack_count (ptr_val (k)) - 1; 101 ptr_status.contents_sw (ptr_val (k)) = 0; 102 ptr_status.p_lock (ptr_val (k)) = 1; 103 ptr_status.p_priority (ptr_val (k)) = 0; 104 end; /* Register must be restored. */ 105 end; 106 107 reset: 108 ptr_status.contents_sw (1) = 0; 109 ptr_status.p_priority (1) = 0; 110 if ptr_status.save_stack_count (1) ^= 0 111 then do; 112 call cobol_register_util$restore_pointer ("0001"b); 113 ptr_status.p_lock (1) = 1; 114 end; 115 else ptr_status.p_lock (1) = 0; 116 ptr_status.contents_sw (2) = 0; 117 ptr_status.p_priority (2) = 0; 118 if ptr_status.save_stack_count (2) ^= 0 119 then do; 120 call cobol_register_util$restore_pointer ("0010"b); 121 ptr_status.p_lock (2) = 1; 122 end; 123 else ptr_status.p_lock (2) = 0; 124 ptr_status.contents_sw (7) = 0; 125 ptr_status.p_priority (7) = 0; 126 if ptr_status.save_stack_count (7) ^= 0 127 then do; 128 call cobol_register_util$restore_pointer ("0111"b); 129 ptr_status.p_lock (7) = 1; 130 end; 131 else ptr_status.p_lock (7) = 0; 132 133 134 do i = 0 to 9; 135 reg_status.r_priority (i) = 0; 136 if reg_status.save_stack_count (i) ^= 0 137 then do; /* Must restore this register. */ 138 call cobol_register_util$restore ((get_bit_code (i))); 139 reg_status.r_lock (i) = 1; 140 end; 141 else reg_status.r_lock (i) = 0; /* ORN */ 142 /* 143* 144* reg_status.contents_sw(i)=0; 145* */ 146 end; 147 exit_pointer_register: 148 /***.....if Trace_Bit then call cobol_gen_driver_$Tr_End(MY_NAME);/**/ 149 return; 150 151 152 /*************************************/ 153 after_operator: 154 entry; 155 start_after_operator: 156 /***..... dcl LOCAL_NAME2 char (15) int static init ("$AFTER_OPERATOR");/**/ 157 /***.....if Trace_Bit then call cobol_gen_driver_$Tr_Beg(MY_NAME||LOCAL_NAME2);/**/ 158 i = 1; 159 j = 4; 160 go to emit_; 161 162 163 /*************************************/ 164 in_line: 165 entry; 166 start_in_line: 167 /***..... dcl LOCAL_NAME3 char (8) int static init ("$IN_LINE");/**/ 168 /***.....if Trace_Bit then call cobol_gen_driver_$Tr_Beg(MY_NAME||LOCAL_NAME3);/**/ 169 go to reset; 170 171 172 173 /*************************************/ 174 error_exit: 175 error_message.message = "Invalid PR specification"; 176 call signal_ ("command_abort_", null (), addr (error_message)); 177 return; 178 179 180 /*************************************/ 181 get_bit_code: 182 proc (fbin_code) returns (bit (4)); 183 184 dcl fbin_code fixed bin; 185 dcl bit_code bit (4); 186 187 if fbin_code = 9 188 then bit_code = "0010"b; /* Q */ 189 else if fbin_code = 8 190 then bit_code = "0001"b; /* A */ 191 else bit_code = "1"b || substr (unspec (fbin_code), 34, 3); 192 193 return (bit_code); 194 195 end get_bit_code; 196 197 198 /***..... dcl cobol_gen_driver_$Tr_Beg entry(char(*));/**/ 199 /***..... dcl cobol_gen_driver_$Tr_End entry(char(*));/**/ 200 201 /***..... dcl Trace_Bit bit(1) static external;/**/ 202 /***..... dcl Trace_Lev fixed bin static external;/**/ 203 /***..... dcl Trace_Line char(36) static external;/**/ 204 /***..... dcl ioa_ entry options(variable); /**/ 205 /***..... dcl MY_NAME char (13) int static init ("COBOL_RESET_R");/**/ 206 207 /* INCLUDE FILES USED BY THIS PROCEDURE */ 208 209 dcl 1 ptr_status (0:7) based (cobol_$ptr_status_ptr) aligned, 1 1 1 2 /* BEGIN INCLUDE FILE ... cobol_ptr_status.incl.pl1 */ 1 3 /* Last modified June 3, 76 by bc */ 1 4 /* last modified Oct. 31,75 by tlf */ 1 5 1 6 /* 1 7*1. This structure contains the status of the object time 1 8* pointer registers. 1 9*2. The caller should provide a dcl statement in the form: 1 10* dcl 1 ptr_status (0:7) based ( cobol_$ptr_status_ptr) aligned, 1 11**/ 1 12 1 13 2 pointer_num bit (3), 1 14 2 usage fixed bin, 1 15 2 contents_sw fixed bin, 1 16 2 seg_num fixed bin, 1 17 2 wd_offset fixed bin (24), 1 18 2 p_lock fixed bin, 1 19 2 p_priority fixed bin, 1 20 2 p_reset fixed bin, 1 21 2 reset_seg_num fixed bin, 1 22 2 reset_wd_offset fixed bin (24), 1 23 02 save_stack_max fixed bin, 1 24 02 save_stack_count fixed bin, 1 25 02 save_stack (1:10) bit (36), 1 26 02 reloc_stack (1:10), 1 27 03 left_reloc_info bit (5) aligned, 1 28 03 right_reloc_info bit (5) aligned; 1 29 1 30 1 31 1 32 /* END INCLUDE FILE ... cobol_ptr_status.incl.pl1 */ 1 33 210 211 212 /***** Declaration for builtin function *****/ 213 214 dcl (substr, mod, binary, fixed, addr, addrel, rel, length, string, unspec, null, index) 215 builtin; 216 217 /***** End of declaration for builtin function *****/ 218 219 dcl 1 reg_status (0:9) based (cobol_$reg_status_ptr) aligned, 2 1 2 2 /* BEGIN INCLUDE FILE ... cobol_reg_status.incl.pl1 */ 2 3 /* last modified Oct. 31,75 by tlf */ 2 4 2 5 /* 2 6*1. This structure maintains the status of the object 2 7* time A,Q and index registers. 2 8*2. The caller should provide a dcl statement in the form. 2 9* dcl 1 reg_status (0:9) based ( cobol_$reg_status_ptr) aligned, 2 10**/ 2 11 2 12 2 register_num bit (4), 2 13 2 r_lock fixed bin, 2 14 2 r_priority fixed bin, 2 15 02 save_stack_max fixed bin, 2 16 02 save_stack_count fixed bin, 2 17 02 save_stack (1:10) bit (36), 2 18 02 reloc_stack (1:10), 2 19 03 left_reloc_info bit (5) aligned, 2 20 03 right_reloc_info bit (5) aligned; 2 21 2 22 2 23 2 24 /* END INCLUDE FILE ... cobol_reg_status.incl.pl1 */ 2 25 220 3 1 3 2 /* BEGIN INCLUDE FILE ... cobol_.incl.pl1 */ 3 3 /* last modified Feb 4, 1977 by ORN */ 3 4 3 5 /* This file defines all external data used in the generator phase of Multics Cobol */ 3 6 3 7 /* POINTERS */ 3 8 dcl cobol_$text_base_ptr ptr ext; 3 9 dcl text_base_ptr ptr defined (cobol_$text_base_ptr); 3 10 dcl cobol_$con_end_ptr ptr ext; 3 11 dcl con_end_ptr ptr defined (cobol_$con_end_ptr); 3 12 dcl cobol_$def_base_ptr ptr ext; 3 13 dcl def_base_ptr ptr defined (cobol_$def_base_ptr); 3 14 dcl cobol_$link_base_ptr ptr ext; 3 15 dcl link_base_ptr ptr defined (cobol_$link_base_ptr); 3 16 dcl cobol_$sym_base_ptr ptr ext; 3 17 dcl sym_base_ptr ptr defined (cobol_$sym_base_ptr); 3 18 dcl cobol_$reloc_text_base_ptr ptr ext; 3 19 dcl reloc_text_base_ptr ptr defined (cobol_$reloc_text_base_ptr); 3 20 dcl cobol_$reloc_def_base_ptr ptr ext; 3 21 dcl reloc_def_base_ptr ptr defined (cobol_$reloc_def_base_ptr); 3 22 dcl cobol_$reloc_link_base_ptr ptr ext; 3 23 dcl reloc_link_base_ptr ptr defined (cobol_$reloc_link_base_ptr); 3 24 dcl cobol_$reloc_sym_base_ptr ptr ext; 3 25 dcl reloc_sym_base_ptr ptr defined (cobol_$reloc_sym_base_ptr); 3 26 dcl cobol_$reloc_work_base_ptr ptr ext; 3 27 dcl reloc_work_base_ptr ptr defined (cobol_$reloc_work_base_ptr); 3 28 dcl cobol_$pd_map_ptr ptr ext; 3 29 dcl pd_map_ptr ptr defined (cobol_$pd_map_ptr); 3 30 dcl cobol_$fixup_ptr ptr ext; 3 31 dcl fixup_ptr ptr defined (cobol_$fixup_ptr); 3 32 dcl cobol_$initval_base_ptr ptr ext; 3 33 dcl initval_base_ptr ptr defined (cobol_$initval_base_ptr); 3 34 dcl cobol_$initval_file_ptr ptr ext; 3 35 dcl initval_file_ptr ptr defined (cobol_$initval_file_ptr); 3 36 dcl cobol_$perform_list_ptr ptr ext; 3 37 dcl perform_list_ptr ptr defined (cobol_$perform_list_ptr); 3 38 dcl cobol_$alter_list_ptr ptr ext; 3 39 dcl alter_list_ptr ptr defined (cobol_$alter_list_ptr); 3 40 dcl cobol_$seg_init_list_ptr ptr ext; 3 41 dcl seg_init_list_ptr ptr defined (cobol_$seg_init_list_ptr); 3 42 dcl cobol_$temp_token_area_ptr ptr ext; 3 43 dcl temp_token_area_ptr ptr defined (cobol_$temp_token_area_ptr); 3 44 dcl cobol_$temp_token_ptr ptr ext; 3 45 dcl temp_token_ptr ptr defined (cobol_$temp_token_ptr); 3 46 dcl cobol_$token_block1_ptr ptr ext; 3 47 dcl token_block1_ptr ptr defined (cobol_$token_block1_ptr); 3 48 dcl cobol_$token_block2_ptr ptr ext; 3 49 dcl token_block2_ptr ptr defined (cobol_$token_block2_ptr); 3 50 dcl cobol_$minpral5_ptr ptr ext; 3 51 dcl minpral5_ptr ptr defined (cobol_$minpral5_ptr); 3 52 dcl cobol_$tag_table_ptr ptr ext; 3 53 dcl tag_table_ptr ptr defined (cobol_$tag_table_ptr); 3 54 dcl cobol_$map_data_ptr ptr ext; 3 55 dcl map_data_ptr ptr defined (cobol_$map_data_ptr); 3 56 dcl cobol_$ptr_status_ptr ptr ext; 3 57 dcl ptr_status_ptr ptr defined (cobol_$ptr_status_ptr); 3 58 dcl cobol_$reg_status_ptr ptr ext; 3 59 dcl reg_status_ptr ptr defined (cobol_$reg_status_ptr); 3 60 dcl cobol_$misc_base_ptr ptr ext; 3 61 dcl misc_base_ptr ptr defined (cobol_$misc_base_ptr); 3 62 dcl cobol_$misc_end_ptr ptr ext; 3 63 dcl misc_end_ptr ptr defined (cobol_$misc_end_ptr); 3 64 dcl cobol_$list_ptr ptr ext; 3 65 dcl list_ptr ptr defined (cobol_$list_ptr); 3 66 dcl cobol_$allo1_ptr ptr ext; 3 67 dcl allo1_ptr ptr defined (cobol_$allo1_ptr); 3 68 dcl cobol_$eln_ptr ptr ext; 3 69 dcl eln_ptr ptr defined (cobol_$eln_ptr); 3 70 dcl cobol_$diag_ptr ptr ext; 3 71 dcl diag_ptr ptr defined (cobol_$diag_ptr); 3 72 dcl cobol_$xref_token_ptr ptr ext; 3 73 dcl xref_token_ptr ptr defined (cobol_$xref_token_ptr); 3 74 dcl cobol_$xref_chain_ptr ptr ext; 3 75 dcl xref_chain_ptr ptr defined (cobol_$xref_chain_ptr); 3 76 dcl cobol_$statement_info_ptr ptr ext; 3 77 dcl statement_info_ptr ptr defined (cobol_$statement_info_ptr); 3 78 dcl cobol_$reswd_ptr ptr ext; 3 79 dcl reswd_ptr ptr defined (cobol_$reswd_ptr); 3 80 dcl cobol_$op_con_ptr ptr ext; 3 81 dcl op_con_ptr ptr defined (cobol_$op_con_ptr); 3 82 dcl cobol_$ntbuf_ptr ptr ext; 3 83 dcl ntbuf_ptr ptr defined (cobol_$ntbuf_ptr); 3 84 dcl cobol_$main_pcs_ptr ptr ext; 3 85 dcl main_pcs_ptr ptr defined (cobol_$main_pcs_ptr); 3 86 dcl cobol_$include_info_ptr ptr ext; 3 87 dcl include_info_ptr ptr defined (cobol_$include_info_ptr); 3 88 3 89 /* FIXED BIN */ 3 90 dcl cobol_$text_wd_off fixed bin ext; 3 91 dcl text_wd_off fixed bin defined (cobol_$text_wd_off); 3 92 dcl cobol_$con_wd_off fixed bin ext; 3 93 dcl con_wd_off fixed bin defined (cobol_$con_wd_off); 3 94 dcl cobol_$def_wd_off fixed bin ext; 3 95 dcl def_wd_off fixed bin defined (cobol_$def_wd_off); 3 96 dcl cobol_$def_max fixed bin ext; 3 97 dcl def_max fixed bin defined (cobol_$def_max); 3 98 dcl cobol_$link_wd_off fixed bin ext; 3 99 dcl link_wd_off fixed bin defined (cobol_$link_wd_off); 3 100 dcl cobol_$link_max fixed bin ext; 3 101 dcl link_max fixed bin defined (cobol_$link_max); 3 102 dcl cobol_$sym_wd_off fixed bin ext; 3 103 dcl sym_wd_off fixed bin defined (cobol_$sym_wd_off); 3 104 dcl cobol_$sym_max fixed bin ext; 3 105 dcl sym_max fixed bin defined (cobol_$sym_max); 3 106 dcl cobol_$reloc_text_max fixed bin(24) ext; 3 107 dcl reloc_text_max fixed bin(24) defined (cobol_$reloc_text_max); 3 108 dcl cobol_$reloc_def_max fixed bin(24) ext; 3 109 dcl reloc_def_max fixed bin(24) defined (cobol_$reloc_def_max); 3 110 dcl cobol_$reloc_link_max fixed bin(24) ext; 3 111 dcl reloc_link_max fixed bin(24) defined (cobol_$reloc_link_max); 3 112 dcl cobol_$reloc_sym_max fixed bin(24) ext; 3 113 dcl reloc_sym_max fixed bin(24) defined (cobol_$reloc_sym_max); 3 114 dcl cobol_$reloc_work_max fixed bin(24) ext; 3 115 dcl reloc_work_max fixed bin(24) defined (cobol_$reloc_work_max); 3 116 dcl cobol_$pd_map_index fixed bin ext; 3 117 dcl pd_map_index fixed bin defined (cobol_$pd_map_index); 3 118 dcl cobol_$cobol_data_wd_off fixed bin ext; 3 119 dcl cobol_data_wd_off fixed bin defined (cobol_$cobol_data_wd_off); 3 120 dcl cobol_$stack_off fixed bin ext; 3 121 dcl stack_off fixed bin defined (cobol_$stack_off); 3 122 dcl cobol_$max_stack_off fixed bin ext; 3 123 dcl max_stack_off fixed bin defined (cobol_$max_stack_off); 3 124 dcl cobol_$init_stack_off fixed bin ext; 3 125 dcl init_stack_off fixed bin defined (cobol_$init_stack_off); 3 126 dcl cobol_$pd_map_sw fixed bin ext; 3 127 dcl pd_map_sw fixed bin defined (cobol_$pd_map_sw); 3 128 dcl cobol_$next_tag fixed bin ext; 3 129 dcl next_tag fixed bin defined (cobol_$next_tag); 3 130 dcl cobol_$data_init_flag fixed bin ext; 3 131 dcl data_init_flag fixed bin defined (cobol_$data_init_flag); 3 132 dcl cobol_$seg_init_flag fixed bin ext; 3 133 dcl seg_init_flag fixed bin defined (cobol_$seg_init_flag); 3 134 dcl cobol_$alter_flag fixed bin ext; 3 135 dcl alter_flag fixed bin defined (cobol_$alter_flag); 3 136 dcl cobol_$sect_eop_flag fixed bin ext; 3 137 dcl sect_eop_flag fixed bin defined (cobol_$sect_eop_flag); 3 138 dcl cobol_$para_eop_flag fixed bin ext; 3 139 dcl para_eop_flag fixed bin defined (cobol_$para_eop_flag); 3 140 dcl cobol_$priority_no fixed bin ext; 3 141 dcl priority_no fixed bin defined (cobol_$priority_no); 3 142 dcl cobol_$compile_count fixed bin ext; 3 143 dcl compile_count fixed bin defined (cobol_$compile_count); 3 144 dcl cobol_$ptr_assumption_ind fixed bin ext; 3 145 dcl ptr_assumption_ind fixed bin defined (cobol_$ptr_assumption_ind); 3 146 dcl cobol_$reg_assumption_ind fixed bin ext; 3 147 dcl reg_assumption_ind fixed bin defined (cobol_$reg_assumption_ind); 3 148 dcl cobol_$perform_para_index fixed bin ext; 3 149 dcl perform_para_index fixed bin defined (cobol_$perform_para_index); 3 150 dcl cobol_$perform_sect_index fixed bin ext; 3 151 dcl perform_sect_index fixed bin defined (cobol_$perform_sect_index); 3 152 dcl cobol_$alter_index fixed bin ext; 3 153 dcl alter_index fixed bin defined (cobol_$alter_index); 3 154 dcl cobol_$list_off fixed bin ext; 3 155 dcl list_off fixed bin defined (cobol_$list_off); 3 156 dcl cobol_$constant_offset fixed bin ext; 3 157 dcl constant_offset fixed bin defined (cobol_$constant_offset); 3 158 dcl cobol_$misc_max fixed bin ext; 3 159 dcl misc_max fixed bin defined (cobol_$misc_max); 3 160 dcl cobol_$pd_map_max fixed bin ext; 3 161 dcl pd_map_max fixed bin defined (cobol_$pd_map_max); 3 162 dcl cobol_$map_data_max fixed bin ext; 3 163 dcl map_data_max fixed bin defined (cobol_$map_data_max); 3 164 dcl cobol_$fixup_max fixed bin ext; 3 165 dcl fixup_max fixed bin defined (cobol_$fixup_max); 3 166 dcl cobol_$tag_table_max fixed bin ext; 3 167 dcl tag_table_max fixed bin defined (cobol_$tag_table_max); 3 168 dcl cobol_$temp_token_max fixed bin ext; 3 169 dcl temp_token_max fixed bin defined (cobol_$temp_token_max); 3 170 dcl cobol_$allo1_max fixed bin ext; 3 171 dcl allo1_max fixed bin defined (cobol_$allo1_max); 3 172 dcl cobol_$eln_max fixed bin ext; 3 173 dcl eln_max fixed bin defined (cobol_$eln_max); 3 174 dcl cobol_$debug_enable fixed bin ext; 3 175 dcl debug_enable fixed bin defined (cobol_$debug_enable); 3 176 dcl cobol_$non_source_offset fixed bin ext; 3 177 dcl non_source_offset fixed bin defined (cobol_$non_source_offset); 3 178 dcl cobol_$initval_flag fixed bin ext; 3 179 dcl initval_flag fixed bin defined (cobol_$initval_flag); 3 180 dcl cobol_$date_compiled_sw fixed bin ext; 3 181 dcl date_compiled_sw fixed bin defined (cobol_$date_compiled_sw); 3 182 dcl cobol_$include_cnt fixed bin ext; 3 183 dcl include_cnt fixed bin defined (cobol_$include_cnt); 3 184 dcl cobol_$fs_charcnt fixed bin ext; 3 185 dcl fs_charcnt fixed bin defined (cobol_$fs_charcnt); 3 186 dcl cobol_$ws_charcnt fixed bin ext; 3 187 dcl ws_charcnt fixed bin defined (cobol_$ws_charcnt); 3 188 dcl cobol_$coms_charcnt fixed bin ext; 3 189 dcl coms_charcnt fixed bin defined (cobol_$coms_charcnt); 3 190 dcl cobol_$ls_charcnt fixed bin ext; 3 191 dcl ls_charcnt fixed bin defined (cobol_$ls_charcnt); 3 192 dcl cobol_$cons_charcnt fixed bin ext; 3 193 dcl cons_charcnt fixed bin defined (cobol_$cons_charcnt); 3 194 dcl cobol_$value_cnt fixed bin ext; 3 195 dcl value_cnt fixed bin defined (cobol_$value_cnt); 3 196 dcl cobol_$cd_cnt fixed bin ext; 3 197 dcl cd_cnt fixed bin defined (cobol_$cd_cnt); 3 198 dcl cobol_$fs_wdoff fixed bin ext; 3 199 dcl fs_wdoff fixed bin defined (cobol_$fs_wdoff); 3 200 dcl cobol_$ws_wdoff fixed bin ext; 3 201 dcl ws_wdoff fixed bin defined (cobol_$ws_wdoff); 3 202 dcl cobol_$coms_wdoff fixed bin ext; 3 203 dcl coms_wdoff fixed bin defined (cobol_$coms_wdoff); 3 204 3 205 /* CHARACTER */ 3 206 dcl cobol_$scratch_dir char (168) aligned ext; 3 207 dcl scratch_dir char (168) aligned defined (cobol_$scratch_dir); /* -42- */ 3 208 dcl cobol_$obj_seg_name char (32) aligned ext; 3 209 dcl obj_seg_name char (32) aligned defined (cobol_$obj_seg_name); /* -8- */ 3 210 3 211 /* BIT */ 3 212 dcl cobol_$xref_bypass bit(1) aligned ext; 3 213 dcl xref_bypass bit(1) aligned defined (cobol_$xref_bypass); /* -1- */ 3 214 dcl cobol_$same_sort_merge_proc bit(1) aligned ext; 3 215 dcl same_sort_merge_proc bit(1) aligned defined (cobol_$same_sort_merge_proc); /* -1- */ 3 216 3 217 3 218 /* END INCLUDE FILE ... cobol_incl.pl1*/ 3 219 3 220 221 222 223 end cobol_reset_r; SOURCE FILES USED IN THIS COMPILATION. LINE NUMBER DATE MODIFIED NAME PATHNAME 0 05/24/89 0832.6 cobol_reset_r.pl1 >spec>install>MR12.3-1048>cobol_reset_r.pl1 210 1 11/11/82 1712.8 cobol_ptr_status.incl.pl1 >ldd>include>cobol_ptr_status.incl.pl1 220 2 11/11/82 1712.8 cobol_reg_status.incl.pl1 >ldd>include>cobol_reg_status.incl.pl1 221 3 11/11/82 1712.7 cobol_.incl.pl1 >ldd>include>cobol_.incl.pl1 NAMES DECLARED IN THIS COMPILATION. IDENTIFIER OFFSET LOC STORAGE CLASS DATA TYPE ATTRIBUTES AND REFERENCES (* indicates a set context) NAMES DECLARED BY DECLARE STATEMENT. addr builtin function dcl 214 ref 83 83 176 176 bit_code 000112 automatic bit(4) packed unaligned dcl 185 set ref 187* 189* 191* 193 cobol_$ptr_status_ptr 000044 external static pointer dcl 3-56 ref 77 80 81 98 100 100 101 102 103 107 109 110 113 115 116 117 118 121 123 124 125 126 129 131 cobol_$reg_status_ptr 000046 external static pointer dcl 3-58 ref 135 136 139 141 cobol_emit 000042 constant entry external dcl 52 ref 83 cobol_register_util$restore 000036 constant entry external dcl 34 ref 138 cobol_register_util$restore_pointer 000034 constant entry external dcl 32 ref 79 112 120 128 contents_sw 2 based fixed bin(17,0) array level 2 dcl 209 set ref 80* 101* 107* 116* 124* error_message 000010 internal static structure level 1 unaligned dcl 38 set ref 176 176 fbin_code parameter fixed bin(17,0) dcl 184 ref 181 187 189 191 i 000100 automatic fixed bin(17,0) dcl 53 set ref 63* 67* 69* 71* 73* 75 77 80 81 83 83 90* 96 134* 135 136 138* 139 141* 155* j 000101 automatic fixed bin(17,0) dcl 53 set ref 94* 96 159* k 000102 automatic fixed bin(17,0) dcl 54 set ref 96* 98 100 100 101 102 103* message 11 000010 internal static char(24) level 2 packed packed unaligned dcl 38 set ref 174* null builtin function dcl 214 ref 83 83 176 176 p_lock 5 based fixed bin(17,0) array level 2 dcl 209 set ref 81* 102* 113* 115* 121* 123* 129* 131* p_priority 6 based fixed bin(17,0) array level 2 dcl 209 set ref 103* 109* 117* 125* ptr_no parameter bit(3) packed unaligned dcl 58 ref 61 67 69 71 73 79 ptr_status based structure array level 1 dcl 209 ptr_val 000000 constant fixed bin(17,0) initial array dcl 56 ref 77 98 100 100 101 102 103 r_lock 1 based fixed bin(17,0) array level 2 dcl 219 set ref 139* 141* r_priority 2 based fixed bin(17,0) array level 2 dcl 219 set ref 135* reg_status based structure array level 1 dcl 219 reset_r_instr 000027 internal static bit(36) initial array packed unaligned dcl 43 set ref 83 83 save_stack_count 4 based fixed bin(17,0) array level 2 in structure "reg_status" dcl 219 in procedure "cobol_reset_r" ref 136 save_stack_count 13 based fixed bin(17,0) array level 2 in structure "ptr_status" dcl 209 in procedure "cobol_reset_r" set ref 77 98 100* 100 110 118 126 signal_ 000040 constant entry external dcl 37 ref 176 substr builtin function dcl 214 ref 191 unspec builtin function dcl 214 ref 191 NAMES DECLARED BY DECLARE STATEMENT AND NEVER REFERENCED. addrel builtin function dcl 214 allo1_max defined fixed bin(17,0) dcl 3-171 allo1_ptr defined pointer dcl 3-67 alter_flag defined fixed bin(17,0) dcl 3-135 alter_index defined fixed bin(17,0) dcl 3-153 alter_list_ptr defined pointer dcl 3-39 binary builtin function dcl 214 cd_cnt defined fixed bin(17,0) dcl 3-197 cobol_$allo1_max external static fixed bin(17,0) dcl 3-170 cobol_$allo1_ptr external static pointer dcl 3-66 cobol_$alter_flag external static fixed bin(17,0) dcl 3-134 cobol_$alter_index external static fixed bin(17,0) dcl 3-152 cobol_$alter_list_ptr external static pointer dcl 3-38 cobol_$cd_cnt external static fixed bin(17,0) dcl 3-196 cobol_$cobol_data_wd_off external static fixed bin(17,0) dcl 3-118 cobol_$compile_count external static fixed bin(17,0) dcl 3-142 cobol_$coms_charcnt external static fixed bin(17,0) dcl 3-188 cobol_$coms_wdoff external static fixed bin(17,0) dcl 3-202 cobol_$con_end_ptr external static pointer dcl 3-10 cobol_$con_wd_off external static fixed bin(17,0) dcl 3-92 cobol_$cons_charcnt external static fixed bin(17,0) dcl 3-192 cobol_$constant_offset external static fixed bin(17,0) dcl 3-156 cobol_$data_init_flag external static fixed bin(17,0) dcl 3-130 cobol_$date_compiled_sw external static fixed bin(17,0) dcl 3-180 cobol_$debug_enable external static fixed bin(17,0) dcl 3-174 cobol_$def_base_ptr external static pointer dcl 3-12 cobol_$def_max external static fixed bin(17,0) dcl 3-96 cobol_$def_wd_off external static fixed bin(17,0) dcl 3-94 cobol_$diag_ptr external static pointer dcl 3-70 cobol_$eln_max external static fixed bin(17,0) dcl 3-172 cobol_$eln_ptr external static pointer dcl 3-68 cobol_$fixup_max external static fixed bin(17,0) dcl 3-164 cobol_$fixup_ptr external static pointer dcl 3-30 cobol_$fs_charcnt external static fixed bin(17,0) dcl 3-184 cobol_$fs_wdoff external static fixed bin(17,0) dcl 3-198 cobol_$include_cnt external static fixed bin(17,0) dcl 3-182 cobol_$include_info_ptr external static pointer dcl 3-86 cobol_$init_stack_off external static fixed bin(17,0) dcl 3-124 cobol_$initval_base_ptr external static pointer dcl 3-32 cobol_$initval_file_ptr external static pointer dcl 3-34 cobol_$initval_flag external static fixed bin(17,0) dcl 3-178 cobol_$link_base_ptr external static pointer dcl 3-14 cobol_$link_max external static fixed bin(17,0) dcl 3-100 cobol_$link_wd_off external static fixed bin(17,0) dcl 3-98 cobol_$list_off external static fixed bin(17,0) dcl 3-154 cobol_$list_ptr external static pointer dcl 3-64 cobol_$ls_charcnt external static fixed bin(17,0) dcl 3-190 cobol_$main_pcs_ptr external static pointer dcl 3-84 cobol_$map_data_max external static fixed bin(17,0) dcl 3-162 cobol_$map_data_ptr external static pointer dcl 3-54 cobol_$max_stack_off external static fixed bin(17,0) dcl 3-122 cobol_$minpral5_ptr external static pointer dcl 3-50 cobol_$misc_base_ptr external static pointer dcl 3-60 cobol_$misc_end_ptr external static pointer dcl 3-62 cobol_$misc_max external static fixed bin(17,0) dcl 3-158 cobol_$next_tag external static fixed bin(17,0) dcl 3-128 cobol_$non_source_offset external static fixed bin(17,0) dcl 3-176 cobol_$ntbuf_ptr external static pointer dcl 3-82 cobol_$obj_seg_name external static char(32) dcl 3-208 cobol_$op_con_ptr external static pointer dcl 3-80 cobol_$para_eop_flag external static fixed bin(17,0) dcl 3-138 cobol_$pd_map_index external static fixed bin(17,0) dcl 3-116 cobol_$pd_map_max external static fixed bin(17,0) dcl 3-160 cobol_$pd_map_ptr external static pointer dcl 3-28 cobol_$pd_map_sw external static fixed bin(17,0) dcl 3-126 cobol_$perform_list_ptr external static pointer dcl 3-36 cobol_$perform_para_index external static fixed bin(17,0) dcl 3-148 cobol_$perform_sect_index external static fixed bin(17,0) dcl 3-150 cobol_$priority_no external static fixed bin(17,0) dcl 3-140 cobol_$ptr_assumption_ind external static fixed bin(17,0) dcl 3-144 cobol_$reg_assumption_ind external static fixed bin(17,0) dcl 3-146 cobol_$reloc_def_base_ptr external static pointer dcl 3-20 cobol_$reloc_def_max external static fixed bin(24,0) dcl 3-108 cobol_$reloc_link_base_ptr external static pointer dcl 3-22 cobol_$reloc_link_max external static fixed bin(24,0) dcl 3-110 cobol_$reloc_sym_base_ptr external static pointer dcl 3-24 cobol_$reloc_sym_max external static fixed bin(24,0) dcl 3-112 cobol_$reloc_text_base_ptr external static pointer dcl 3-18 cobol_$reloc_text_max external static fixed bin(24,0) dcl 3-106 cobol_$reloc_work_base_ptr external static pointer dcl 3-26 cobol_$reloc_work_max external static fixed bin(24,0) dcl 3-114 cobol_$reswd_ptr external static pointer dcl 3-78 cobol_$same_sort_merge_proc external static bit(1) dcl 3-214 cobol_$scratch_dir external static char(168) dcl 3-206 cobol_$sect_eop_flag external static fixed bin(17,0) dcl 3-136 cobol_$seg_init_flag external static fixed bin(17,0) dcl 3-132 cobol_$seg_init_list_ptr external static pointer dcl 3-40 cobol_$stack_off external static fixed bin(17,0) dcl 3-120 cobol_$statement_info_ptr external static pointer dcl 3-76 cobol_$sym_base_ptr external static pointer dcl 3-16 cobol_$sym_max external static fixed bin(17,0) dcl 3-104 cobol_$sym_wd_off external static fixed bin(17,0) dcl 3-102 cobol_$tag_table_max external static fixed bin(17,0) dcl 3-166 cobol_$tag_table_ptr external static pointer dcl 3-52 cobol_$temp_token_area_ptr external static pointer dcl 3-42 cobol_$temp_token_max external static fixed bin(17,0) dcl 3-168 cobol_$temp_token_ptr external static pointer dcl 3-44 cobol_$text_base_ptr external static pointer dcl 3-8 cobol_$text_wd_off external static fixed bin(17,0) dcl 3-90 cobol_$token_block1_ptr external static pointer dcl 3-46 cobol_$token_block2_ptr external static pointer dcl 3-48 cobol_$value_cnt external static fixed bin(17,0) dcl 3-194 cobol_$ws_charcnt external static fixed bin(17,0) dcl 3-186 cobol_$ws_wdoff external static fixed bin(17,0) dcl 3-200 cobol_$xref_bypass external static bit(1) dcl 3-212 cobol_$xref_chain_ptr external static pointer dcl 3-74 cobol_$xref_token_ptr external static pointer dcl 3-72 cobol_data_wd_off defined fixed bin(17,0) dcl 3-119 compile_count defined fixed bin(17,0) dcl 3-143 coms_charcnt defined fixed bin(17,0) dcl 3-189 coms_wdoff defined fixed bin(17,0) dcl 3-203 con_end_ptr defined pointer dcl 3-11 con_wd_off defined fixed bin(17,0) dcl 3-93 cons_charcnt defined fixed bin(17,0) dcl 3-193 constant_offset defined fixed bin(17,0) dcl 3-157 data_init_flag defined fixed bin(17,0) dcl 3-131 date_compiled_sw defined fixed bin(17,0) dcl 3-181 debug_enable defined fixed bin(17,0) dcl 3-175 def_base_ptr defined pointer dcl 3-13 def_max defined fixed bin(17,0) dcl 3-97 def_wd_off defined fixed bin(17,0) dcl 3-95 diag_ptr defined pointer dcl 3-71 eln_max defined fixed bin(17,0) dcl 3-173 eln_ptr defined pointer dcl 3-69 fixed builtin function dcl 214 fixup_max defined fixed bin(17,0) dcl 3-165 fixup_ptr defined pointer dcl 3-31 fs_charcnt defined fixed bin(17,0) dcl 3-185 fs_wdoff defined fixed bin(17,0) dcl 3-199 include_cnt defined fixed bin(17,0) dcl 3-183 include_info_ptr defined pointer dcl 3-87 index builtin function dcl 214 init_stack_off defined fixed bin(17,0) dcl 3-125 initval_base_ptr defined pointer dcl 3-33 initval_file_ptr defined pointer dcl 3-35 initval_flag defined fixed bin(17,0) dcl 3-179 length builtin function dcl 214 link_base_ptr defined pointer dcl 3-15 link_max defined fixed bin(17,0) dcl 3-101 link_wd_off defined fixed bin(17,0) dcl 3-99 list_off defined fixed bin(17,0) dcl 3-155 list_ptr defined pointer dcl 3-65 ls_charcnt defined fixed bin(17,0) dcl 3-191 main_pcs_ptr defined pointer dcl 3-85 map_data_max defined fixed bin(17,0) dcl 3-163 map_data_ptr defined pointer dcl 3-55 max_stack_off defined fixed bin(17,0) dcl 3-123 minpral5_ptr defined pointer dcl 3-51 misc_base_ptr defined pointer dcl 3-61 misc_end_ptr defined pointer dcl 3-63 misc_max defined fixed bin(17,0) dcl 3-159 mod builtin function dcl 214 next_tag defined fixed bin(17,0) dcl 3-129 non_source_offset defined fixed bin(17,0) dcl 3-177 ntbuf_ptr defined pointer dcl 3-83 obj_seg_name defined char(32) dcl 3-209 op_con_ptr defined pointer dcl 3-81 op_flag internal static fixed bin(17,0) initial dcl 55 para_eop_flag defined fixed bin(17,0) dcl 3-139 pd_map_index defined fixed bin(17,0) dcl 3-117 pd_map_max defined fixed bin(17,0) dcl 3-161 pd_map_ptr defined pointer dcl 3-29 pd_map_sw defined fixed bin(17,0) dcl 3-127 perform_list_ptr defined pointer dcl 3-37 perform_para_index defined fixed bin(17,0) dcl 3-149 perform_sect_index defined fixed bin(17,0) dcl 3-151 priority_no defined fixed bin(17,0) dcl 3-141 ptr_assumption_ind defined fixed bin(17,0) dcl 3-145 ptr_status_ptr defined pointer dcl 3-57 reg_assumption_ind defined fixed bin(17,0) dcl 3-147 reg_status_ptr defined pointer dcl 3-59 rel builtin function dcl 214 reloc_def_base_ptr defined pointer dcl 3-21 reloc_def_max defined fixed bin(24,0) dcl 3-109 reloc_link_base_ptr defined pointer dcl 3-23 reloc_link_max defined fixed bin(24,0) dcl 3-111 reloc_sym_base_ptr defined pointer dcl 3-25 reloc_sym_max defined fixed bin(24,0) dcl 3-113 reloc_text_base_ptr defined pointer dcl 3-19 reloc_text_max defined fixed bin(24,0) dcl 3-107 reloc_work_base_ptr defined pointer dcl 3-27 reloc_work_max defined fixed bin(24,0) dcl 3-115 reswd_ptr defined pointer dcl 3-79 same_sort_merge_proc defined bit(1) dcl 3-215 scratch_dir defined char(168) dcl 3-207 sect_eop_flag defined fixed bin(17,0) dcl 3-137 seg_init_flag defined fixed bin(17,0) dcl 3-133 seg_init_list_ptr defined pointer dcl 3-41 stack_off defined fixed bin(17,0) dcl 3-121 statement_info_ptr defined pointer dcl 3-77 string builtin function dcl 214 sym_base_ptr defined pointer dcl 3-17 sym_max defined fixed bin(17,0) dcl 3-105 sym_wd_off defined fixed bin(17,0) dcl 3-103 tag_table_max defined fixed bin(17,0) dcl 3-167 tag_table_ptr defined pointer dcl 3-53 temp_token_area_ptr defined pointer dcl 3-43 temp_token_max defined fixed bin(17,0) dcl 3-169 temp_token_ptr defined pointer dcl 3-45 text_base_ptr defined pointer dcl 3-9 text_wd_off defined fixed bin(17,0) dcl 3-91 token_block1_ptr defined pointer dcl 3-47 token_block2_ptr defined pointer dcl 3-49 value_cnt defined fixed bin(17,0) dcl 3-195 ws_charcnt defined fixed bin(17,0) dcl 3-187 ws_wdoff defined fixed bin(17,0) dcl 3-201 xref_bypass defined bit(1) dcl 3-213 xref_chain_ptr defined pointer dcl 3-75 xref_token_ptr defined pointer dcl 3-73 NAMES DECLARED BY EXPLICIT CONTEXT. after_call 000154 constant entry external dcl 88 after_operator 000357 constant entry external dcl 153 cobol_reset_r 000027 constant entry external dcl 27 emit_ 000165 constant label dcl 96 ref 160 error_exit 000400 constant label dcl 174 ref 75 exit_pointer_register 000355 constant label dcl 147 ref 85 get_bit_code 000433 constant entry internal dcl 181 ref 138 in_line 000372 constant entry external dcl 164 pointer_register 000040 constant entry external dcl 61 reset 000217 constant label dcl 107 ref 166 start_after_call 000161 constant label dcl 90 start_after_operator 000364 constant label dcl 155 start_in_line 000377 constant label dcl 166 start_pointer_register 000045 constant label dcl 63 THERE WERE NO NAMES DECLARED BY CONTEXT OR IMPLICATION. STORAGE REQUIREMENTS FOR THIS PROGRAM. Object Text Link Symbol Defs Static Start 0 0 624 674 470 634 Length 1134 470 50 223 133 24 BLOCK NAME STACK SIZE TYPE WHY NONQUICK/WHO SHARES STACK FRAME cobol_reset_r 108 external procedure is an external procedure. get_bit_code internal procedure shares stack frame of external procedure cobol_reset_r. STORAGE FOR INTERNAL STATIC VARIABLES. LOC IDENTIFIER BLOCK NAME 000010 error_message cobol_reset_r 000027 reset_r_instr cobol_reset_r STORAGE FOR AUTOMATIC VARIABLES. STACK FRAME LOC IDENTIFIER BLOCK NAME cobol_reset_r 000100 i cobol_reset_r 000101 j cobol_reset_r 000102 k cobol_reset_r 000112 bit_code get_bit_code THE FOLLOWING EXTERNAL OPERATORS ARE USED BY THIS PROGRAM. call_ext_out_desc call_ext_out return_mac ext_entry THE FOLLOWING EXTERNAL ENTRIES ARE CALLED BY THIS PROGRAM. cobol_emit cobol_register_util$restore cobol_register_util$restore_pointer signal_ THE FOLLOWING EXTERNAL VARIABLES ARE USED BY THIS PROGRAM. cobol_$ptr_status_ptr cobol_$reg_status_ptr LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC 27 000026 61 000034 63 000045 67 000046 69 000060 71 000065 73 000072 75 000076 77 000100 79 000107 80 000120 81 000126 82 000131 83 000132 85 000152 88 000153 90 000161 94 000163 96 000165 98 000175 100 000206 101 000211 102 000212 103 000214 105 000215 107 000217 109 000223 110 000224 112 000226 113 000236 114 000243 115 000244 116 000245 117 000246 118 000247 120 000251 121 000261 122 000266 123 000267 124 000270 125 000271 126 000272 128 000274 129 000304 130 000311 131 000312 134 000313 135 000317 136 000324 138 000327 139 000340 140 000350 141 000351 146 000353 147 000355 153 000356 155 000364 159 000366 160 000370 164 000371 166 000377 174 000400 176 000403 177 000432 181 000433 187 000435 189 000443 191 000450 193 000455 ----------------------------------------------------------- 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