CMS Application Development Guidefor Assembler

Total Page:16

File Type:pdf, Size:1020Kb

CMS Application Development Guidefor Assembler z/VM Version 7 Release 1 CMS Application Development Guide for Assembler IBM SC24-6257-00 Note: Before you use this information and the product it supports, read the information in “Notices” on page 503. This edition applies to version 7, release 1, modification 0 of IBM® z/VM® (product number 5741-A09) and to all subsequent releases and modifications until otherwise indicated in new editions. Last updated: 2018-09-12 © Copyright International Business Machines Corporation 1990, 2018. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents List of Figures..................................................................................................... xiii List of Tables........................................................................................................xv About This Document......................................................................................... xvii Intended Audience................................................................................................................................... xvii Where to Find More Information..............................................................................................................xvii Links to Other Documents and Websites........................................................................................... xvii How to Send Your Comments to IBM....................................................................xix Summary of Changes for z/VM CMS Application Development Guide for Assembler....................................................................................................... xx SC24-6257-00, z/VM Version 7 Release 1................................................................................................xx SC24-6163-02, z/VM Version 6 Release 4................................................................................................xx Part 1. Introduction.............................................................................................. 1 Chapter 1. The CMS Programming Interface.............................................................................................. 3 Overview of the CMS Programming Interface....................................................................................... 3 CMS Virtual Machine Environments................................................................................................. 3 CMS Programming Interface Groups..................................................................................................... 4 CMS Preferred Interface.........................................................................................................................5 CMS Preferred Macros...................................................................................................................... 5 CMS Preferred Routines....................................................................................................................9 CMS Preferred Functions.................................................................................................................. 9 CMS Compatibility Interface................................................................................................................ 10 CMS Compatibility Macros and Suggested Replacements............................................................ 10 CMS Compatibility Functions and Suggested Replacements........................................................11 Simulated OS/MVS Macros.............................................................................................................11 Chapter 2. CMS Operating Characteristics................................................................................................15 Overview of CMS Operating Characteristics........................................................................................15 CMS Command Search Order...............................................................................................................15 CMS Runs in Supervisor State..............................................................................................................16 How CMS Command Processing Works...............................................................................................16 Explicitly Releasing Resources.......................................................................................................16 The CMS Command Loop................................................................................................................17 SVC Levels.......................................................................................................................................17 Abend Processing........................................................................................................................... 18 Determining When CMS Reclaims Resources..................................................................................... 18 Saving Resources across Boundaries.................................................................................................. 20 Using Macro Libraries...........................................................................................................................21 Coding CMS Macros........................................................................................................................ 21 How CMS Macros Work...................................................................................................................22 CMS Macro Formats........................................................................................................................22 Chapter 3. Architecture............................................................................................................................. 23 ESA/XC, ESA/XA, 370-XA, and System/370 Architecture.................................................................. 23 ESA/XC, 370-XA, and System/370 PSWs............................................................................................23 31-Bit Addressing................................................................................................................................ 24 Conventions for 31-Bit Programs...................................................................................................24 Bimodal Addressing........................................................................................................................25 iii I/O Considerations..........................................................................................................................28 CMS Preferred Interface I/O Support.............................................................................................28 Using Diagnose Codes for I/O.........................................................................................................29 I/O Instructions.............................................................................................................................. 29 Assembler Instructions That Work Differently....................................................................................30 Instructions That Are Sensitive to Addressing Mode.................................................................... 31 Part 2. Using CMS Services..................................................................................33 Chapter 4. Program Invocation - Direct Branch Linkage.......................................................................... 35 Overview of Direct Branch Linkage...................................................................................................... 35 Using BAL/BALR with AMODE ANY Programs..................................................................................... 35 Switching the Addressing Mode...........................................................................................................35 AMODESW Formats........................................................................................................................ 36 Using AMODESW - Examples......................................................................................................... 36 Chapter 5. Program Invocation - Supervisor Assisted Linkage................................................................ 39 Overview of CMS Supervisor Assisted Linkage....................................................................................39 Supervisor Assisted Linkage — An Overview.......................................................................................39 Setting Up a Parameter List................................................................................................................. 41 Using the SCAN Macro.................................................................................................................... 41 Making the Call................................................................................................................................43 Call Charts.......................................................................................................................................45 Receiving Control..................................................................................................................................46 Register Usage................................................................................................................................ 46 USERSAVE
Recommended publications
  • VM/SP Introduction.Pdf
    GC19-6200-1 File No. S370/4300-20 Program Product GC19-6200-1 File No. S370/4300-20 IBM Virtual Machine/ System Product: Program Product Introduction Program Number 5664-167 Release 2 -----~- - i::~~ Second Edition (April 1982) This edition, GC19-6200-1, is a reV1S10n of GC19-6200-0. It applies to the IBft Virtual ~achine/System Product (5664-167) until otherwise indicated in new editions or ~echnical Newsletters. Changes are continually made to the information contained herein; before using this publication in connection with the operaticn of IBft systems, consult the IB~ 2:i2tem/370 and .!!300 f!:~.§§£!§ Bibli.£g~, GC20-0001, for the editions that are applicable and current. For a list of changes, see page iii. Technical changes or additions to the text cr illustrations are indicated by a vertical bar to the left of the change. It is possible that this material may contain reference to, or information about, IB~ products (machines and programs), programming, or services that are not announced in your country. Such references or information must not be construed to mean that lEft intends to announce such IB~ products, programming, or services in your country. Publications are not stocked at the address given below; requests for IB~ publications should be made to your IBft representative or to the IB~ branch office serving your locality. A form for reader's comments is provided at the back of this publication. If the torm has been removed, comments may be addressed to IB~ Corporation, Programming Publications, Department G60, P.O. Box 6, Endicott, New York, U.S.A.
    [Show full text]
  • NCAR/TN-178+IA Interactive Computing on the IBM 4341
    NCAR/TN-1 78+1A NCAR TECHNICAL NOTE I a- l iI October 1981 Interactive Computing on the IBM 4341 SCIENTIFIC COMPUTING DIVISION 4 NATIONAL CENTER FOR ATMOSPHERIC RESEARCH BOULDER, COLORADO Interactive Computing on the IBM 4341 Table of Cmtents UISAPVm 1 THE IBM 4341 COMPUTING SYSTEM ......................................... 1-1 The Hardware ..................................................- Virtual Machine Concepts.................................... - VM/370.................................. 1-2 Conversational Monitor System (CMS).................................. 1-5 Virtual Devices Under CMS ............................................. 1-6 GETTING STARTED ON THE IBM 4341 ......................... ........... .2-1 Understanding CMS ..................................... 2-1 CMS Virtual Machine ................................... 2-1 Communicating with VM/SP ............ 2-2.............2-2 Getting Commands Into the System...................................... 2-5 Formatting the Virtual Disks........................................ 2-9 Profile EXEC...o ..... ............................................ 2-10 Getting Acquainted with CMS ........................... ......... 2-10 Virtual Disks.... 2-14 Other Helpful Information................................ ......... 2-18 CYUATPKR 3 THE HELP FACILITY .................................... 3-1 Introduction ......................... ........... ..........3-1 Using the HELP Facility. ...................................3-1 Issuing the HELP Coamand............................................3-2
    [Show full text]
  • VM/CMS Table of Contents
    The Operating System Handbook or, Fake Your Way Through Minis and Mainframes by Bob DuCharme VM/CMS Table of Contents Chapter 17 VM/CMS: An Introduction............................................................................. 17.1 History........................................................................................................................1 17.1.1 CP: The Control Program.......................................................................................2 Chapter 18 Getting Started with VM/CMS....................................................................... 18.1 Starting Up.................................................................................................................4 18.1.1 The Logon Screen...................................................................................................4 18.1.2 Entering CMS.........................................................................................................6 18.1.3 Entering Commands................................................................................................7 18.1.3.1 MORE . .............................................................................................................9 18.1.3.2 Aborting Screen Output.......................................................................................10 18.1.3.3 Case Sensitivity....................................................................................................12 18.1.4 Finishing Your CMS Session.................................................................................12
    [Show full text]
  • Operating Systems in a Virtual Machine.Pdf
    ------- - - ------- Virtual Machine/ ------ - - ------- ----- - , - System Product OrPeraftull1lg Systems un a Virtua~ Maclhune Release 3 Ijl t I 'I ,. • ' • • '\'I~ I Third Edition (September 1983) This edition, GCI9-6212-2, is a major revision of GCI9-6212-1, and applies to Release 3 of the Virtual Machine/System Product, program number 5664-167, (VM/SP) and to all subsequent releases and modifications until otherwise indicated in new editions or Technical Newsletters. Changes are made periodically to the information herein; before using this publication in connection with the operation of IBM systems, consult the latest IBM System/370 and 4300 Processors Bibligraphy, GC20-0001, for the editions that are applicable and current. Summary of Changes For a list of changes, see 'page iii. Changes or additions to the text and illustrations are indicated by a vertical line to the left of the change. References in this publication to IBM products, programs, or services do not imply that IBM intends to make these available in all countries in which IBM operates. Any reference to an IBM program product in this publication is not intended to state or imply that only IBM's program product may be used. Any functionally equivalent program may be used instead. Publications are not stocked at the address given below. Requests for IBM publications should be made to your IBM representative or to the IBM branch office serving your locality. A form for readers' comments is provided at the back of this publication. If the form has been removed, comments may be addressed to IBM Corporation, Programming Publications, Dept. G60, P.O.
    [Show full text]