ASSEMBLY LISTING OF SEGMENT >special_ldd>install>MR12.2-1019>g115_conv_.alm ASSEMBLED ON: 02/02/88 1658.6 mst Tue OPTIONS USED: list symbols ASSEMBLED BY: ALM Version 7.4 April 1987 ASSEMBLER CREATED: 11/02/87 1303.7 mst Mon 1 " ****************************************************** 2 " * * 3 " * * 4 " * Copyright (c) 1972 by Massachusetts Institute of * 5 " * Technology and Honeywell Information Systems, Inc. * 6 " * * 7 " * * 8 " ****************************************************** 9 10 " G115_CONV_ - Conversion for G115 remote printer. 11 " coded 12/12/74 by Noel I. Morris 12 " Modified 6/23/75 by Noel I. Morris 13 " Modified 04/10/77 by Bob Franklin to change top of inside page char 14 " and dont slew on punch 15 " Modified by D. Vinograd, 7/78, to separate the teleprinter, printer, and punch entries 16 " Modified by J. C. Whitmore, 11/78, to make all top of page slews the same 17 " Modified by J. C. Whitmore, 9/79, to move protocol features to g115_protocol_.pl1 18 19 " This module performs the necessary conversion for printing on the 20 " G115 remote printer. 21 " 22 " The manner in which this procedure is utilized is described in detail 23 " in the listing of prt_conv_. 24 " 25 " A media code character will be inserted at the beginning of each 26 " output line. 27 28 000000 29 name g115_conv_ 30 000000 31 segdef teleprinter 000004 32 segdef printer 000000 33 segdef punch 34 35 36 even 37 temp char 38 temp device_code 1 = printer, 0 = all others 39 40 41 000000 42 teleprinter: 000000 43 punch: 000000 0a 000010 7100 00 44 tra g115_send_init 000001 0a 000016 7100 00 45 tra g115_send_chars 000002 0a 000033 7100 00 46 tra g115_send_slew_pattern 000003 0a 000045 7100 00 47 tra g115_send_slew_count 48 000004 49 printer: 000004 0a 000013 7100 00 50 tra g115_send_printer_init 000005 0a 000016 7100 00 51 tra g115_send_chars 000006 0a 000033 7100 00 52 tra g115_send_slew_pattern 000007 0a 000045 7100 00 53 tra g115_send_slew_count 54 55 56 " 57 include prt_conv_info 1-1 1-2 1-3 "BEGIN INCLUDE FILE prt_conv_info.incl.alm 1-4 1-5 "Created 09/12/80 1100.5 edt Fri by convert_include_file, 1-6 " Version of 05/04/80 2034.1 edt Sun. 1-7 1-8 "Made from >udd>Multics>Palter>work>prt_conv_info.incl.pl1, 1-9 " modified 09/12/80 1100.1 edt Fri 1-10 1-11 1-12 " HISTORY COMMENTS: 1-13 " 1) change(87-05-10,Gilcrease), approve(87-07-31,MCR7686), 1-14 " audit(88-02-01,Farley), install(88-02-02,MR12.2-1019): 1-15 " Add pci.(line_nbrs eof eol) bits for eor -nb option. 1-16 " END HISTORY COMMENTS 1-17 1-18 1-19 " 1-20 " Structure pci 1-21 " 000336 1-22 equ pci_size,222 1-23 1-24 000000 1-25 equ pci.cv_proc,0 000002 1-26 equ pci.lmarg,2 000003 1-27 equ pci.rmarg,3 000004 1-28 equ pci.page_length,4 000005 1-29 equ pci.phys_line_length,5 000006 1-30 equ pci.phys_page_length,6 000007 1-31 equ pci.lpi,7 000010 1-32 equ pci.sheets_per_page,8 000011 1-33 equ pci.line_count,9 000012 1-34 equ pci.page_count,10 000013 1-35 equ pci.func,11 000014 1-36 equ pci.modes,12 "LEVEL 2 1-37 400000 1-38 bool pci.overflow_off,400000 "DU 200000 1-39 bool pci.single_space,200000 "DU 100000 1-40 bool pci.non_edited,100000 "DU 040000 1-41 bool pci.truncate,040000 "DU 020000 1-42 bool pci.esc,020000 "DU 010000 1-43 bool pci.ctl_char,010000 "DU 004000 1-44 bool pci.line_nbrs,004000 "DU 000030 1-45 equ pci.pci_pad_shift,24 000037 1-46 bool pci.pci_pad_mask,000037 1-47 000014 1-48 equ pci.flags,12 "LEVEL 2 1-49 000040 1-50 bool pci.ignore_next_ff,000040 "DU 000020 1-51 bool pci.eol,000020 "DU 000010 1-52 bool pci.eof,000010 "DU 000022 1-53 equ pci.flags_pad_shift,18 000007 1-54 bool pci.flags_pad_mask,000007 1-55 000014 1-56 equ pci.coroutine_modes,12 "LEVEL 2 1-57 400000 1-58 bool pci.upper_case,400000 "DL 200000 1-59 bool pci.ht,200000 "DL 000003 1-60 equ pci.coroutine_pad_shift,3 017777 1-61 bool pci.coroutine_pad_mask,017777 000000 1-62 equ pci.slew_table_idx_shift,0 000007 1-63 bool pci.slew_table_idx_mask,000007 1-64 000015 1-65 equ pci.top_label_line,13 "DOUBLE 000057 1-66 equ pci.bot_label_line,47 "DOUBLE 000121 1-67 equ pci.top_label_length,81 000122 1-68 equ pci.bot_label_length,82 000123 1-69 equ pci.form_stops,83 "LEVEL 2 1-70 000033 1-71 equ pci.lbits_shift,27 000777 1-72 bool pci.lbits_mask,000777 000022 1-73 equ pci.rbits_shift,18 000777 1-74 bool pci.rbits_mask,000777 1-75 000323 1-76 equ pci.level,211 000324 1-77 equ pci.pos,212 000325 1-78 equ pci.line,213 000326 1-79 equ pci.slew_residue,214 000327 1-80 equ pci.label_nelem,215 000330 1-81 equ pci.label_wksp,216 000332 1-82 equ pci.sav_pos,218 000333 1-83 equ pci.esc_state,219 000334 1-84 equ pci.esc_num,220 000335 1-85 equ pci.temp,221 1-86 1-87 "END INCLUDE FILE prt_conv_info.incl.alm 58 " 59 000010 60 g115_send_init: 61 000010 aa 000000 2360 03 62 ldq 0,du set the all other device code 000011 aa 6 00051 7561 00 63 stq device_code and save for later 64 000012 0a 000015 7100 00 65 tra end_init 66 000013 67 g115_send_printer_init: 68 000013 aa 000001 2360 03 69 ldq 1,du set the printer code 000014 aa 6 00051 7561 00 70 stq device_code and save for later 71 000015 72 end_init: 73 000015 aa 7 00000 7101 00 74 tra sb|0 return to caller 75 " 76 000016 77 g115_send_chars: 78 000016 aa 000000 6360 12 79 eaq 0,2 white space count in QU 000017 0a 000024 6044 00 80 tmoz nospace skip if no white space 81 82 " insert spaces as requested, compression is done at the next level 83 000020 aa 040140 1004 00 84 mlr (),(pr,rl),fill(040) insert requisite number of blanks 000021 0a 000021 000000 85 desc9a *,0 .. 000022 aa 300000 000002 86 desc9a bb|0,qu .. 87 000023 aa 3 00000 5005 02 88 a9bd bb|0,qu bump output pointer 89 000024 90 nospace: 000024 aa 0 00140 1005 40 91 mlr (pr,rl),(pr,rl) copy characters into bb -> out_string 000025 aa 200000 000001 92 desc9a bp|0,au .. 000026 aa 300000 000001 93 desc9a bb|0,au .. 94 000027 aa 2 00000 5005 01 95 a9bd bp|0,au step input and output pointers 000030 aa 3 00000 5005 01 96 a9bd bb|0,au .. 000031 aa 000000 6220 00 97 eax2 0 make sure X2 now zero 000032 aa 7 00000 7101 00 98 tra pr7|0 return to caller 99 100 101 " 102 000033 103 g115_send_slew_pattern: 104 000033 aa 6 00051 2361 00 105 ldq device_code see if this is a printer 000034 0a 000044 6000 00 106 tze return_to_caller if not, there is no slew 107 000035 aa 040000 2360 03 108 ldq =1a ,du load the FF slew code 109 000036 110 set_slew: 111 000036 aa 6 00050 7561 00 112 stq char save the slew code 000037 aa 000001 6270 00 113 eax7 1 we will add one char to the output 114 000040 aa 0 00140 1005 40 115 mlr (pr,rl),(pr,rl) copy into output 000041 aa 600050 000017 116 desc9a char,x7 .. 000042 aa 300000 000017 117 desc9a bb|0,x7 .. 118 000043 aa 3 00000 5005 17 119 a9bd bb|0,7 .. 120 000044 121 return_to_caller: 000044 aa 7 00000 7101 00 122 tra sb|0 return to caller 123 " 124 000045 125 g115_send_slew_count: 126 000045 aa 6 00051 2361 00 127 ldq device_code see if this is a printer 000046 0a 000055 6000 00 128 tze no_slew if not, there is no slew 129 000047 aa 000000 6360 05 130 eaq 0,al count in QU 000050 aa 000017 1350 07 131 sbla 15,dl decrement A by 15, residue will come later 000051 0a 000053 6044 00 132 tmoz *+2 can only take 15 lines at a time 000052 aa 000017 2360 03 133 ldq 15,du if > 15, take 15 for now 000053 0a 000057 2360 02 134 ldq skip,qu get correct skip character 000054 0a 000036 7100 00 135 tra set_slew join common code 136 000055 137 no_slew: 138 " just say we did it and return 000055 aa 000000 2350 07 139 lda 0,dl clear the residue count 000056 aa 7 00000 7101 00 140 tra sb|0 and return 141 142 143 " GRTS codes for slew of N lines 144 000057 aa 060 000 000 000 145 skip: aci "0" slew 0 lines 000060 aa 061 000 000 000 146 aci "1" slew 1 line 000061 aa 062 000 000 000 147 aci "2" slew 2 lines 000062 aa 063 000 000 000 148 aci "3" slew 3 lines 000063 aa 064 000 000 000 149 aci "4" slew 4 lines 000064 aa 065 000 000 000 150 aci "5" slew 5 lines 000065 aa 066 000 000 000 151 aci "6" slew 6 lines 000066 aa 067 000 000 000 152 aci "7" slew 7 lines 000067 aa 070 000 000 000 153 aci "8" slew 8 lines 000070 aa 071 000 000 000 154 aci "9" slew 9 lines 000071 aa 133 000 000 000 155 aci "[" slew 10 lines 000072 aa 043 000 000 000 156 aci "#" slew 11 lines 000073 aa 100 000 000 000 157 aci "@" slew 12 lines 000074 aa 072 000 000 000 158 aci ":" slew 13 lines 000075 aa 076 000 000 000 159 aci ">" slew 14 lines 000076 aa 077 000 000 000 160 aci "?" slew 15 lines 161 162 end NO LITERALS NAME DEFINITIONS FOR ENTRY POINTS AND SEGDEFS 000100 5a 000003 000000 000101 5a 000040 600000 000102 aa 000000 000000 000103 55 000011 000002 000104 5a 000002 400003 000105 55 000006 000011 000106 aa 012 147 061 061 000107 aa 065 137 143 157 000110 aa 156 166 137 000 000111 55 000016 000003 000112 0a 000000 400000 000113 55 000014 000003 000114 aa 005 160 165 156 punch 000115 aa 143 150 000 000 000116 55 000023 000011 000117 0a 000004 400000 000120 55 000021 000003 000121 aa 007 160 162 151 printer 000122 aa 156 164 145 162 000123 55 000031 000016 000124 0a 000000 400000 000125 55 000026 000003 000126 aa 013 164 145 154 teleprinter 000127 aa 145 160 162 151 000130 aa 156 164 145 162 000131 55 000002 000023 000132 6a 000000 400002 000133 55 000034 000003 000134 aa 014 163 171 155 symbol_table 000135 aa 142 157 154 137 000136 aa 164 141 142 154 000137 aa 145 000 000 000 DEFINITIONS HASH TABLE 000140 aa 000000 000015 000141 5a 000023 000000 000142 aa 000000 000000 000143 aa 000000 000000 000144 aa 000000 000000 000145 aa 000000 000000 000146 aa 000000 000000 000147 5a 000031 000000 000150 aa 000000 000000 000151 5a 000016 000000 000152 aa 000000 000000 000153 aa 000000 000000 000154 aa 000000 000000 000155 5a 000011 000000 NO EXTERNAL NAMES NO TRAP POINTER WORDS TYPE PAIR BLOCKS 000156 aa 000001 000000 000157 aa 000000 000000 INTERNAL EXPRESSION WORDS LINKAGE INFORMATION 000000 aa 000000 000000 000001 0a 000100 000000 000002 aa 000000 000000 000003 aa 000000 000000 000004 aa 000000 000000 000005 aa 000000 000000 000006 22 000010 000010 000007 a2 000000 000000 SYMBOL INFORMATION SYMBOL TABLE HEADER 000000 aa 000000 000001 000001 aa 163171 155142 000002 aa 164162 145145 000003 aa 000000 000007 000004 aa 000000 115705 000005 aa 073761 335527 000006 aa 000000 116070 000007 aa 774130 454371 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 000130 000021 aa 000143 000140 000022 aa 000154 000130 000023 aa 000064 000000 000024 aa 101114 115040 000025 aa 126145 162163 000026 aa 151157 156040 000027 aa 067056 064040 000030 aa 101160 162151 000031 aa 154040 061071 000032 aa 070067 040040 000033 aa 040040 040040 000034 aa 107112 157150 000035 aa 156163 157156 000036 aa 056123 171163 000037 aa 115141 151156 000040 aa 164056 141040 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 000002 000066 aa 000076 000057 000067 aa 160646 302362 000070 aa 000000 116070 000071 aa 726331 000000 000072 aa 000112 000067 000073 aa 160646 301572 000074 aa 000000 116070 000075 aa 723627 400000 000076 aa 076163 160145 >special_ldd>install>MR12.2-1019>g115_conv_.alm 000077 aa 143151 141154 000100 aa 137154 144144 000101 aa 076151 156163 000102 aa 164141 154154 000103 aa 076115 122061 000104 aa 062056 062055 000105 aa 061060 061071 000106 aa 076147 061061 000107 aa 065137 143157 000110 aa 156166 137056 000111 aa 141154 155040 000112 aa 076163 160145 >special_ldd>install>MR12.2-1019>prt_conv_info.incl.alm 000113 aa 143151 141154 000114 aa 137154 144144 000115 aa 076151 156163 000116 aa 164141 154154 000117 aa 076115 122061 000120 aa 062056 062055 000121 aa 061060 061071 000122 aa 076160 162164 000123 aa 137143 157156 000124 aa 166137 151156 000125 aa 146157 056151 000126 aa 156143 154056 000127 aa 141154 155040 MULTICS ASSEMBLY CROSS REFERENCE LISTING Value Symbol Source file Line number 50 char g115_conv_: 37, 112, 116. 51 device_code g115_conv_: 38, 63, 70, 105, 127. 15 end_init g115_conv_: 65, 72. 16 g115_send_chars g115_conv_: 45, 51, 77. 10 g115_send_init g115_conv_: 44, 60. 13 g115_send_printer_init g115_conv_: 50, 67. 45 g115_send_slew_count g115_conv_: 47, 53, 125. 33 g115_send_slew_pattern g115_conv_: 46, 52, 103. 24 nospace g115_conv_: 80, 90. 55 no_slew g115_conv_: 128, 137. 122 pci.bot_label_length prt_conv_info: 68. 57 pci.bot_label_line prt_conv_info: 66. 14 pci.coroutine_modes prt_conv_info: 56. 17777 pci.coroutine_pad_mask prt_conv_info: 61. 3 pci.coroutine_pad_shift prt_conv_info: 60. 10000 pci.ctl_char prt_conv_info: 43. 0 pci.cv_proc prt_conv_info: 25. 10 pci.eof prt_conv_info: 52. 20 pci.eol prt_conv_info: 51. 20000 pci.esc prt_conv_info: 42. 334 pci.esc_num prt_conv_info: 84. 333 pci.esc_state prt_conv_info: 83. 14 pci.flags prt_conv_info: 48. 7 pci.flags_pad_mask prt_conv_info: 54. 22 pci.flags_pad_shift prt_conv_info: 53. 123 pci.form_stops prt_conv_info: 69. 13 pci.func prt_conv_info: 35. 200000 pci.ht prt_conv_info: 59. 40 pci.ignore_next_ff prt_conv_info: 50. 327 pci.label_nelem prt_conv_info: 80. 330 pci.label_wksp prt_conv_info: 81. 777 pci.lbits_mask prt_conv_info: 72. 33 pci.lbits_shift prt_conv_info: 71. 323 pci.level prt_conv_info: 76. 325 pci.line prt_conv_info: 78. 11 pci.line_count prt_conv_info: 33. 4000 pci.line_nbrs prt_conv_info: 44. 2 pci.lmarg prt_conv_info: 26. 7 pci.lpi prt_conv_info: 31. 14 pci.modes prt_conv_info: 36. 100000 pci.non_edited prt_conv_info: 40. 400000 pci.overflow_off prt_conv_info: 38. 12 pci.page_count prt_conv_info: 34. 4 pci.page_length prt_conv_info: 28. 37 pci.pci_pad_mask prt_conv_info: 46. 30 pci.pci_pad_shift prt_conv_info: 45. 5 pci.phys_line_length prt_conv_info: 29. 6 pci.phys_page_length prt_conv_info: 30. 324 pci.pos prt_conv_info: 77. 777 pci.rbits_mask prt_conv_info: 74. 22 pci.rbits_shift prt_conv_info: 73. 3 pci.rmarg prt_conv_info: 27. 332 pci.sav_pos prt_conv_info: 82. 10 pci.sheets_per_page prt_conv_info: 32. 200000 pci.single_space prt_conv_info: 39. 326 pci.slew_residue prt_conv_info: 79. 7 pci.slew_table_idx_mask prt_conv_info: 63. 0 pci.slew_table_idx_shift prt_conv_info: 62. 335 pci.temp prt_conv_info: 85. 121 pci.top_label_length prt_conv_info: 67. 15 pci.top_label_line prt_conv_info: 65. 40000 pci.truncate prt_conv_info: 41. 400000 pci.upper_case prt_conv_info: 58. 336 pci_size prt_conv_info: 22. 4 printer g115_conv_: 32, 49. 0 punch g115_conv_: 33, 43. 44 return_to_caller g115_conv_: 106, 121. 36 set_slew g115_conv_: 110, 135. 57 skip g115_conv_: 134, 145. 0 teleprinter g115_conv_: 31, 42. 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