COMPILATION LISTING OF SEGMENT parse_io_channel_name_ Compiled by: Multics PL/I Compiler, Release 27d, of October 11, 1982 Compiled at: Honeywell LISD Phoenix, System M Compiled on: 11/15/82 1637.3 mst Mon Options: optimize map 1 /* *********************************************************** 2* * * 3* * Copyright, (C) Honeywell Information Systems Inc., 1982 * 4* * * 5* * Copyright (c) 1972 by Massachusetts Institute of * 6* * Technology and Honeywell Information Systems, Inc. * 7* * * 8* *********************************************************** */ 9 10 11 /* format: style4,delnl,insnl,ifthenstmt,indnoniterend */ 12 parse_io_channel_name_: 13 proc (arg_string, arg_iom, arg_channel, arg_code); 14 15 /* PARSE_IO_CHANNEL_NAME_ - Procedure to parse a character string representing an iom and channel */ 16 /* Written February 1980 by Larry Johnson */ 17 /* Modified 11 August, 1981, W. Olin Sibert, for decimal channel numbers */ 18 /* Modified October 1982 by C. Hornig for new PRPH TAP card. */ 19 20 /* The format of the string is: 21* tdd - an iom tag (a thru h) followed by a channel number */ 22 23 /* Arguments */ 24 25 dcl arg_string char (*); 26 dcl arg_iom fixed bin (3); 27 dcl arg_channel fixed bin (8); 28 dcl arg_code fixed bin (35); 29 30 /* Automatic */ 31 32 dcl code fixed bin (35); 33 dcl iom fixed bin (3); 34 dcl channel fixed bin (35); 35 36 /* External */ 37 38 dcl cv_dec_check_ entry (char (*), fixed bin (35)) returns (fixed bin (35)); 39 40 dcl error_table_$bad_channel fixed bin (35) ext static; 41 42 dcl (index, length, substr) builtin; 43 44 if length (arg_string) < 1 then do; 45 error: 46 arg_iom = 0; 47 arg_channel = 0; 48 arg_code = error_table_$bad_channel; 49 return; 50 end; 51 52 iom = index ("abcdefgh", substr (arg_string, 1, 1)); 53 if iom = 0 then iom = index ("ABCDEFGH", substr (arg_string, 1, 1)); 54 if iom = 0 then go to error; 55 if length (arg_string) < 2 then go to error; 56 channel = cv_dec_check_ (substr (arg_string, 2), code); 57 if code ^= 0 then go to error; 58 if channel < 0 | channel > 63 then go to error; 59 60 arg_iom = iom; 61 arg_channel = channel; 62 arg_code = 0; 63 return; 64 65 end parse_io_channel_name_; SOURCE FILES USED IN THIS COMPILATION. LINE NUMBER DATE MODIFIED NAME PATHNAME 0 11/15/82 1450.1 parse_io_channel_name_.pl1 >dumps>old>recomp>parse_io_channel_name_.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. arg_channel parameter fixed bin(8,0) dcl 27 set ref 12 47* 61* arg_code parameter fixed bin(35,0) dcl 28 set ref 12 48* 62* arg_iom parameter fixed bin(3,0) dcl 26 set ref 12 45* 60* arg_string parameter char unaligned dcl 25 ref 12 44 52 53 55 56 56 channel 000102 automatic fixed bin(35,0) dcl 34 set ref 56* 58 58 61 code 000100 automatic fixed bin(35,0) dcl 32 set ref 56* 57 cv_dec_check_ 000010 constant entry external dcl 38 ref 56 error_table_$bad_channel 000012 external static fixed bin(35,0) dcl 40 ref 48 index builtin function dcl 42 ref 52 53 iom 000101 automatic fixed bin(3,0) dcl 33 set ref 52* 53 53* 54 60 length builtin function dcl 42 ref 44 55 substr builtin function dcl 42 ref 52 53 56 56 NAMES DECLARED BY EXPLICIT CONTEXT. error 000034 constant label dcl 45 ref 54 55 57 58 parse_io_channel_name_ 000017 constant entry external dcl 12 THERE WERE NO NAMES DECLARED BY CONTEXT OR IMPLICATION. STORAGE REQUIREMENTS FOR THIS PROGRAM. Object Text Link Symbol Defs Static Start 0 0 212 226 141 222 Length 376 141 14 134 50 0 BLOCK NAME STACK SIZE TYPE WHY NONQUICK/WHO SHARES STACK FRAME parse_io_channel_name_ 86 external procedure is an external procedure. STORAGE FOR AUTOMATIC VARIABLES. STACK FRAME LOC IDENTIFIER BLOCK NAME parse_io_channel_name_ 000100 code parse_io_channel_name_ 000101 iom parse_io_channel_name_ 000102 channel parse_io_channel_name_ THE FOLLOWING EXTERNAL OPERATORS ARE USED BY THIS PROGRAM. alloc_cs call_ext_out_desc return shorten_stack ext_entry_desc THE FOLLOWING EXTERNAL ENTRIES ARE CALLED BY THIS PROGRAM. cv_dec_check_ THE FOLLOWING EXTERNAL VARIABLES ARE USED BY THIS PROGRAM. error_table_$bad_channel LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC 12 000012 44 000032 45 000034 47 000036 48 000037 49 000042 52 000043 53 000056 54 000070 55 000071 56 000074 57 000123 58 000126 60 000132 61 000135 62 000137 63 000140 ----------------------------------------------------------- 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