MTS Volume 14, 360/370______Assemblers______In MTS, for Details)
Total Page:16
File Type:pdf, Size:1020Kb
M T S The Michigan Terminal System Volume 14: 360/370 Assemblers in MTS May 1983 Updated September 1986 (Update 1) The University of Michigan Computing Center Ann Arbor, Michigan ***************************************************** * * * This obsoletes the August 1978 edition. * * * ***************************************************** 1 DISCLAIMER The MTS Manual is intended to represent the current state of the Michigan Terminal System (MTS), but because the system is constantly being developed, extended, and refined, sections of this volume will become obsolete. The user should refer to the Computing_________ Center______ Newsletter,__________ Computing Center Memos, and future Updates to this volume for the latest information about changes to MTS. Copyright 1983 by the Regents of the University of Michigan. Copying is permitted for nonprofit, educational use provided that (1) each repro duction is done without alteration and (2) the volume reference and date of publication are included. Permission to republish any portions of this manual should be obtained in writing from the Director of the University of Michigan Computing Center. 2 MTS 14: 360/370 Assemblers in MTS May 1983 Page Revised September 1986 PREFACE_______ The software developed by the Computing Center staff for the operation of the highspeed processor computer can be described as a multiprogramming supervisor that handles a number of resident, reentrant programs. Among them is a large subsystem, called MTS (Michigan Terminal System), for command interpretation, execution control, file management, and accounting maintenance. Most users interact with the computer’s resources through MTS. The MTS Manual is a series of volumes that describe in detail the facilities provided by the Michigan Terminal System. Administrative | policies of the Computing Center and the physical facilities provided | are described in other publications. | | The MTS volumes now in print are listed below. The date indicates | the most recent edition of each volume; however, since volumes are | periodically updated, users should check the file *CCPUBLICATIONS, or | watch for announcements in the UM__________________ Computing News, to ensure that their | MTS volumes are fully up to date. | | | Volume 1: The____________________________ Michigan Terminal System, January 1984 | Volume 2: Public________________________ File Descriptions, April 1982 | Volume 3: System______________________________ Subroutine Descriptions, April 1981 | Volume 4: Terminals_____________________________ and Networks in MTS, March 1984 | Volume 5: System_______________ Services, May 1983 | Volume 6: FORTRAN______________ in MTS, October 1983 | Volume 7: PL/I___________ in MTS, September 1982 | Volume 8: LISP____________________ and SLIP in MTS, June 1976 | Volume 9: SNOBOL4______________ in MTS, September 1975 | Volume 10: BASIC____________ in MTS, December 1980 | Volume 11: Plot_______________________ Description System, August 1978 | Volume 12: PIL/2____________ in MTS, December 1974 | Volume 13: The_____________________________ Symbolic Debugging System, September 1985 | Volume 14: 360/370_________________________ Assemblers in MTS, May 1983 | Volume 15: FORMAT__________________ and TEXT360, April 1977 | Volume 16: ALGOL______________ W in MTS, September 1980 | Volume 17: Integrated__________________________ Graphics System, December 1980 | Volume 18: The___________________ MTS File Editor, August 1985 | Volume 19: Tapes______________________ and Floppy Disks, February 1983 | Volume 20: Pascal_____________ in MTS, December 1985 | Volume 21: MTS_________________________________ Command Extensions and Macros, April 1986 Other volumes are in preparation. The numerical order of the volumes does not necessarily reflect the chronological order of their appearance; however, in general, the higher the number, the more specialized the volume. Volume 1, for example, introduces the user to 3 MTS 14: 360/370 Assemblers in MTS Page Revised September 1986 May 1983 MTS and describes in general the MTS operating system, while Volume 10 deals exclusively with BASIC. The attempt to make each volume complete in itself and reasonably independent of others in the series naturally results in a certain amount of repetition. Public file descriptions, for example, may appear in more than one volume. However, this arrangement permits the user to buy only those volumes that serve his or her immediate needs. Richard A. Salisbury General Editor 4 MTS 14: 360/370 Assemblers in MTS May 1983 PREFACE____________________ TO VOLUME 14 The May 1983 revision reflects the changes that have been made to MTS since August 1978. Some of these changes were described Update 1 (October 1979), Update 2 (April 1980), and Update 3 (January 1981) and are incorporated into this edition. Since January 1981, further changes have been made to the Message Macros and the Structured Programming Macros and are described herein. In addition, the descriptions of the *ASMG and *ASMT assemblers have been removed since they are no longer actively supported by the Computing Center. These descriptions are available through the *GENDOC program. The sections "IOH," "Extensions to the Amdahl 470 Operations," and "Extensions to the System/360 Model 67 Operations" have been moved into Volume 14 from MTS Volume 5, System_______________ Services. 5 MTS 14: 360/370 Assemblers in MTS May 1983 6 MTS 14: 360/370 Assemblers in MTS May 1983 Page Revised September 1986 Contents________ Preface . 3 EXIT . 77 FLOAT . 79 Preface to Volume 14 . 5 FREESPAC . 80 GETSPACE . 81 360/370 Assemblers in MTS . 11 GUSER . 82 INSTSET . 85 Assembler H . 13 IOH Macros . 87 *ASMH . 14 KWLHT . 89 Assembler Options . 14 KWRHT . 90 BATCH Option . 18 KWSET . 98 Assembler H Extensions . 18 LABEL . 99 I/O Unit Usage . 24 LITADDR . .100 SCARDS Input . 24 MAXxx, MINxx . .101 Macro Libraries and COPY MOUNT . .104 Sections . 24 MSG, PMSG, PHRASE . .105 SPRINT Output . 26 MTS . .106 SPUNCH and Unit 1 Output . 27 MTSCMD . .107 Diagnostics and Return Codes 27 MTSMODS . .108 Assembler H Messages . 28 QUIT . .109 Invoking ASMH from a Program 30 READ . .110 REQU . .113 Differences between *ASMG, RETURN . .115 *ASMH, and *ASMT . 33 REWIND . .117 SAVE . .118 Utility Programs for SCARDS . .120 Assembler Users . 41 SERCOM . .123 *ASMTIDY . 42 SPIE . .126 *PEXIT . 47 SPRINT . .128 SPUNCH . .131 Macro Libraries . 51 STIMER . .134 Using Macro Libraries . 52 SYSTEM . .137 Constructing a Macro Library 52 TRL, TRTL . .138 SystemSupplied Macros . 54 TRTAB . .139 ASMTYPE . 55 TTIMER . .143 A8, S8, A8R, S8R . 56 WRITE . .144 ASSIGN . 58 BPI . 59 The Message Macros . .147 CALL . 62 Examples . .147 CMD . 65 MSG Macro Operators . .148 CMDNOE . 66 The "IF" Operators . .156 CNTRL . 67 IF Operator Formats . .157 DFAD, DFSB, DFMP . 70 IF Comparison Operators . .157 DCI, DCINIT . 70.1 OUTPUT Operator . .158 DFIX, EFIX . 71 OUTPUT operators . .158 DISMOUNT . 72 Optional OUTPUT Operators .159 ENTER . 73 PICTURE Operator . .160 ERROR . 76 MSG Examples . .161 7 MTS 14: 360/370 Assemblers in MTS Page Revised September 1986 May 1983 Extensions to the Amdahl Structured Programming Macros .165 470/5860 Operations . .261 Logical Expressions . .165 ExtendedBranch Operations .261 Simple Conditions . .166 Branch and Store . .261 Compound Conditions . .171 ExtendedPrecision IF, THEN, ELSE, ELSEIF, FloatingPoint Operations . .262 ENDIF . .173 Divide . .262 DOCASE, CASE, ELSECASE, Search List Instruction . .264 ENDCASE . .176 DO, ENDDO . .179 Extensions to the System/360 REDO, EXITDO, NEXTDO . .185 Model 67 Operations . .265 DEFCC . .187 ExtendedPrecision FLAGS . .189 FloatingPoint Operations . .265 FLAGVAL . .192 Add Double . .266 SET . .193 Subtract Double . .267 TEST . .195 Multiply Double . .268 MACSET . .197 MixedPrecision FloatingPoint Operations . .269 IOH . .201 Load Mixed . .269 Introduction . .201 Add Mixed . .269 A Simple Case . .201 Subtract Mixed . .269 Format Terms . .203 Multiply Mixed . .270 Types of Format Divide Mixed . .270 Specifications . .204 Swap Register Instruction . .271 Integer . .204 Search List Instruction . .271 FloatingPoint (Ftype) . .204 FloatingPoint (Etype) . .206 The MacroLibrary Editor . .279 Character . .207 MacroLibrary Editor Hexadecimal . .207 Command Language . .282 Packed Decimal . .208 MacroLibrary Editor Literals . .208 Commands . .285 Spaces and Tabs . .209 ADD . .285 Line Skips . .210 BUILDIR . .285 Modifiers . .210 CLEAR . .285 Multiplicities, Groups, COMMENT . .286 and Blocks . .212 COPY . .286 FormatBreak Characters . .213 CREATE . .286 Rescanning the Format . .214 DELETE . .287 Standard Format I/O . .215 DISPLAY . .287 IOH Macros . .217 EDIT . .287 Special Features of IOH . .224 EMPTY . .288 Additional Entry Points EXPLAIN . .288 to IOH . .224 HELP . .289 Format Variables . .229 INCLUDE . .289 Changing Defaults . .233 LIST . .289 Appendix A: IOH Format MCMD . .290 Specifications . .238 MTS . .290 Appendix B: IOH Calling PUNCH . .290 Sequences . .255 RENAME . .291 General Structure of the RENUMBER . .291 Calling Sequence . .255 REPLACE . .292 Description of the OPEN RETURN . .292 and CLOSE Routines . .257 8 MTS 14: 360/370 Assemblers in MTS May 1983 Page Revised September 1986 SET . .292 External Dummy Sections STOP . .293 (Assembler F only) . .312 UPDATE . .294 COM Define Blank Common Command Modifiers . .295 Control Section . .312 BREAK . .295 MachineInstructions . .313 COMSAVE . .295 Instruction Alignment and EMPTY . .295 Checking . .313 FULL . .295 Operand Fields and HDRGEN . .296 Subfields . .313